art3mis Posted July 20, 2017 Share Posted July 20, 2017 (edited) Hi Any DOP experts able to tell me why I can't use $SF > (rand()*100) in the Active parameter field in a Active Value DOP? I'm in a DOP so I should be using $SF, not $F, correct? Essentially I need to return true or evaluate to 1 on a random frame between 1 and 100. Edited July 20, 2017 by art3mis Quote Link to comment Share on other sites More sharing options...
Noobini Posted July 20, 2017 Share Posted July 20, 2017 (edited) think you need to supply 'something' to rand...usually @ptnum say... in your case maybe you're after nrandom() ? that just spits out 0-1 randomly with no seed/argument... http://www.sidefx.com/docs/houdini/vex/functions/nrandom Edited July 20, 2017 by Noobini Quote Link to comment Share on other sites More sharing options...
afx Posted July 21, 2017 Share Posted July 21, 2017 This might do what you want if($F<100,if(rand($F)<.5,0,1),0) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.