[Sidefx-houdini-list] random rotation inside for each loop

Anderson, Charles X. -ND Charles.X.Anderson.-ND at disney.com
Wed Feb 17 12:57:00 EST 2016


Hey Zoran,

Inside a foreach your only dealing with one primitive at a time so $PR is always 0 or 1 I forget.  You have to use the loop number which you access via a stamp expression something like

fit01(rand(stamp("..", "FORVALUE",0)),-180,180)


-----Original Message-----
From: sidefx-houdini-list-bounces at sidefx.com [mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Zoran Arizanovic
Sent: Wednesday, February 17, 2016 9:37 AM
To: sidefx-houdini-list at sidefx.com
Subject: [Sidefx-houdini-list] random rotation inside for each loop

hi
i am using
fit01(rand($PR+seed),-180,180)
inside for each on transform for each primitive
I would like random rotation for each for each $PR
but it looks all the same
what am I doing wrong
thanks

Zoran Arizanovic
LinkedIn <http://www.linkedin.com/pub/zoran-arizanovic/4/177/295>
_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com
https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list



More information about the Sidefx-houdini-list mailing list