Jump to content

How to use For Each's meta values


wreath

Recommended Posts

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
Link to comment
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) ?

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