Valent Posted February 26, 2019 Share Posted February 26, 2019 Hi, I'm trying to store a size of some objects into an array using 'foreach loop'. And it works in a single pass mode, but not in normal mode. And I have no idea why Try to switch single pass mode on and off and check attributes on detail stacked_boxes_q.hipnc Quote Link to comment Share on other sites More sharing options...
Andrea Posted February 26, 2019 Share Posted February 26, 2019 I think the problem here is that the values in the array gets overwritten by the insert function somehow. As the documentation says "the function will fill the gaps with uninitialized values (for example, 0 or the empty string)". Building it that way, at the moment I have no idea how to solve it. Even using the push function and adding elements to the array, doesn't work. Maybe you can store the height as prim/point attribute and add them later to the array? 1 Quote Link to comment Share on other sites More sharing options...
Valent Posted February 26, 2019 Author Share Posted February 26, 2019 It sort of works if I use 'transorm's' parameters instead of bounding box size. But I don't understand what makes the difference. stacked_boxes_qq.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.