gerardocastellanos Posted November 22, 2020 Share Posted November 22, 2020 Hi I want to sort objects, side by side, in X axis, using the bounding box value of each object to calculate his offset relative to the previous one. I pack every object and merge all of them. I used a foreach loop (because I need to do some others operations in my project), but it could be solved with a point wrangler. my idea was store in details an attribute to store the offset history, so I could use in every iteration to read the previous object position, calculate the new offeset based on the current object bounding, and update that attribute to be used in the next iteration... but it does not works as I expect. start state : my goal : here is my scene offset_v4.hipnc THANKS YOU for your time! Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 23, 2020 Share Posted November 23, 2020 you could study align and distribute offset_v4_example.hipnc Quote Link to comment Share on other sites More sharing options...
gerardocastellanos Posted November 23, 2020 Author Share Posted November 23, 2020 Thanks Noobini, it works. anyhow, I would like to solve my problem using the regular nodes as wrangler and foreach loops. thanks again! Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 23, 2020 Share Posted November 23, 2020 3 minutes ago, gerardocastellanos said: Thanks Noobini, it works. anyhow, I would like to solve my problem using the regular nodes as wrangler and foreach loops. thanks again! well what i meant was, rclick on the node, allow editing, dive inside, look how they did it then maybe you can reverse engineer and apply to yours. i think it's all regular nodes under the hood. Quote Link to comment Share on other sites More sharing options...
gerardocastellanos Posted November 23, 2020 Author Share Posted November 23, 2020 11 hours ago, Noobini said: well what i meant was, rclick on the node, allow editing, dive inside, look how they did it then maybe you can reverse engineer and apply to yours. i think it's all regular nodes under the hood. ohhh yeah, good idea!.. thanks you a lot Noobini! it will help me. 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.