Jump to content

Noob Foreach question


Recommended Posts

Hi;

I have an object with 32 prims that I want to iterate over the translation of each one after the other with a foreach loop (not subnetwork) I want to be able to iterate using the "By count method" so that when I pull the iterations slider the prims are translated x units one after the other according to the endices. How can I get the foreach sop's group to iterate through the groups I had assigned to each primitive via the partition node?

Thanx in advance and cheers;

AJ

Link to comment
Share on other sites

I found my answer... Very happy to have solved it reading through the docs. Here's a screenshot in case any other total noob like me will ask something alike :) The metadata created form within the begin block holds various metadata (like iteration etc. (hence the name) The iteration needs to be fed into the group names that have been converted into a set of name attributes and the primitive vop that does the operation needs to reside outside the foreach loop.

Capture.PNG

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...