Emspartan Posted April 11, 2018 Share Posted April 11, 2018 Hello! I want to knoe if there is a way to randomizze the cosnt Activation for turn off and on the Constant Activation on the pop source? Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted April 11, 2018 Share Posted April 11, 2018 if(rand($F)>0.5,1,0) should do the trick ? 1 Quote Link to comment Share on other sites More sharing options...
Emspartan Posted April 16, 2018 Author Share Posted April 16, 2018 Thank you so much !! and is the same expresion posible to use in diferent situation? Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted April 17, 2018 Share Posted April 17, 2018 Yes, the expressions functions of Houdini works everywhere you have parameters. You can even open the Editor and switch to Python expressions. The syntax or if statement is always if(condition, value if condition is true, value if condition is false). Rand(seed value) is a pseudo random function : given a seed value, it will return a randomly chosen float between 0 and 1, but this float will always be the same for a given seed value (which is normal : if you want to render your files on different Machines, you need to have the same results each you open your scene file :-). I have used the frame number variable $F to get a new random value every frame. So yes, very standard expression you play with everywhere. 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.