Jump to content
nibbla

[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

Share this post


Link to post
Share on other sites

That is awesome! Thanks! I didn't know you could hook the metadata to the Mirror SOP, what does that do?

 

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×