Jump to content
Sign in to follow this  
wreath

How to use For Each's meta values

Recommended Posts

Hey guys, I have some boxes and running a for each over them what i want is scattering points with varying amounts. I kind of know what to do but i dont know how to? I guess i need to fetch metadata value and use it as a seed for scattering amount, could use a help on how to set that up  thanks!

ForeachMetaImport.hip

Share this post


Link to post
Share on other sites
1 hour ago, wreath said:

Hey guys, I have some boxes and running a for each over them what i want is scattering points with varying amounts. I kind of know what to do but i dont know how to? I guess i need to fetch metadata value and use it as a seed for scattering amount, could use a help on how to set that up  thanks!

ForeachMetaImport.hip

Add a spare input to Scatter (gear menu), and make it point to the metadata

In scatter, set Force Total Count to:

(1+detail(-1,"iteration",0))*50

detail(-1, ....) is what you're looking for to fetch the value of the metadata.

  • Thanks 1

Share this post


Link to post
Share on other sites
11 minutes ago, AntoineSfx said:

Add a spare input to Scatter (gear menu), and make it point to the metadata

In scatter, set Force Total Count to:

(1+detail(-1,"iteration",0))*50

detail(-1, ....) is what you're looking for to fetch the value of the metadata.

Thanks Antoine so on detail function does the first component "-1" means pointing myself (scatter sop) ?

Share this post


Link to post
Share on other sites

Negative numbers point to spares. Hover the spares in the UI, they reveal how to refer to them

  • Like 1

Share this post


Link to post
Share on other sites
4 minutes ago, AntoineSfx said:

Negative numbers point to spares. Hover the spares in the UI, they reveal how to refer to them

That i learned now thanks a lot!

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
Sign in to follow this  

×