Jump to content

[SOLVED] Foreach group each iteration


Recommended Posts

Hi!

 

I'm inputting a few groups into a "Foreach named primitive"-loop via the Name SOP, now I want each iteration of the loop to output as a group as well... But how to manage this? I want the old box0 group to be called boxmirrored0 after the loop, box1 to be boxmirror1 and so on (while being also mirrored), so I need to be able to put an attribute in the group name or something, like this -> 

5cac9abc8e80f_Skrmklipp.JPG.4dab8a1d0a9574ebd1cb6098727e0e9e.JPG 

 

Example file is attached. All help is greatly appreciated!!!

 

Best,

Albin

 

group output foreach.hipnc

Edited by nibbla
Link to comment
Share on other sites

In this particular case, nothing. It's just way to get a easier-to-write reference to the metadata node.

In other cases it enables you to compile a block of nodes. More information the video below. Compiling nodes is useful for performance reasons and to be able to use the Invoke SOP. Which is a bit of a more advanced workflow. The new material rbd tools in 17 use them, if you want to see some examples.

 

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...