forEach logic

   2500   2   2
User Avatar
Member
120 posts
Joined: Jan. 2012
Offline
Hi,

Im trying to get working foreach SOP.
I want to divide N times a box with horizontal grid, and each cut/division should be in the center of currently iterated group.

Im using two foreach SOPs, first defines how many times it will iterate and divide. Second one, is going through each group and performs cookie SOP.

Something obviously doesnt work here, im not sure if i understand foreach logic correctly.

Can someone take a look at HIP ?

Thanks!

Attachments:
divider1.hipnc (119.4 KB)
divider.jpg (267.5 KB)

Michal Tas Maciejewski @ www.vfxtricks.com
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
connect group sop after the inner foreach, don't create any group but use edit option on this group sop to delet the existing groups (use *) and it will give you the desired output.

It remembers the groups created in every iteration as merge output option is turned on, so it is giving you the undesired output.
User Avatar
Member
120 posts
Joined: Jan. 2012
Offline
thanks! works properly now
Michal Tas Maciejewski @ www.vfxtricks.com
  • Quick Links