Object Stacking through Vex

   2594   2   0
User Avatar
Member
21 posts
Joined: May 2016
Offline
Hi;

I have a bunch of objects I'm trying to stack on top of one another through the use of wrangles within a for-each loop. Just like the copy and transform node gives it's copies a “copynum” identifier on their primitives, I did the same through the connectivity sop. Then I fed the result into a for-each loop that loops though pieces using “copynum” as the piece attribute.

What I wanted to do through Vex but got bogged down is:

1- Take the y bound of the first object and add it to the @P of the second one.
2- Take the y bounds of the first and second object, add them and add the result to the 3rd object.
3- And go on with as many objects there are as defined by copynum.

I would appreciate it a great deal if someone could take the time to take a peek at my file and give me an idea.

Thanx in advance;

AJ
Edited by noc2 - Nov. 11, 2018 21:51:09

Attachments:
AJ_Object_Stacking_Vex.hipnc (80.2 KB)

User Avatar
Member
495 posts
Joined: July 2005
Offline
Hi,

is this coming close to what you want?

Attachments:
AJ_Object_Stacking_Vex_Y.hipnc (88.4 KB)

User Avatar
Member
8 posts
Joined: Jan. 2017
Offline
Aizatulin
Hi,

is this coming close to what you want?

How rude not even replying to your answer... Great set-up, worked for me!
Edited by Chrizzo - July 19, 2024 05:47:24
  • Quick Links