quarel Posted April 12, 2011 Share Posted April 12, 2011 hi there guys! probably very easy question, but I didn't find the answer. How should look an expression for Copy stamping if I want to randomize "size" from specified interval? for example (1-10) ordered_stamp_function.hipnc Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted April 12, 2011 Share Posted April 12, 2011 Use $CY for the current copy number. For example rand($CY) will give you a random value for each copy number. http://www.sidefx.com/docs/houdini11.0/nodes/sop/copy Quote Link to comment Share on other sites More sharing options...
anim Posted April 12, 2011 Share Posted April 12, 2011 to get random size 1-10 based on $PT as in your file you can use fit01(rand($PT), 1, 10) rand($PT) will always be 0-1 fit01() rescales number within 0-1 interval to a new interval, 1-10 in this case 1 Quote Link to comment Share on other sites More sharing options...
quarel Posted April 16, 2011 Author Share Posted April 16, 2011 thankyou thankyou, tomáš, as always! That's pretty nice. I must learn expressions a little more. 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.