Jump to content

Expression removes the points ?


Recommended Posts

I'm running the Scatter SOP within a ForEach SOP, when entering in three for the Force Total Count parameter, I obviously get three points, but when I enter this expression 

rand(detail("../foreach_begin3_metadata1/","iteration",0))

Those three points disappear and there is zero points; yet those three points should remain in the scene ?

Link to comment
Share on other sites

To expand up Noobini's reply, you should put the result of the rand() into a fit01() function and you'll get results that range between your desired amounts. Can throw a floor() on there to force an integer while you're at it too, but not really necessary in this case (but maybe others in the future....) 

floor(fit01(rand(detail("../m", "iteration", 0)), 2, 10))

 

Edited by jamesr
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...