Jump to content

Random switcher inside for each loop


Recommended Posts

I'm trying to make a random switch inside a for each loop to assign one of four different noises to the primitive in the current loop.

I cant access $PR from inside the for each loop as its just looking at one primitive at a time, how can I get each loop to choose a random node?

If it helps the objects are in separate primitive groups before the for each loop.



Edited by Fyre
Link to comment
Share on other sites

  • 2 years later...

Stamp really does not show a performance penalty until you are over a few thousand points. So it is still quite valid on lower point count geo. And even if you have a 60,000+ point object you can still leverage stamp() and just write out the result after the stamp operation. Place a FileCache node after your massive stamp operation to recover performance.

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.

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