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

Jens Martensson jempamartensson at gmail.com
Wed Feb 17 12:59:21 EST 2016

Hi Zoran
Inside the foreach, is there only one primitive?
In that case $PR will return 0, as it only 1 primitive for each iteration

use fit01(rand(stamp("../../ForeachNode","FORIDXVALUE",0),-180,180)
This will stamp current iteration number
Lets see if that works
Good luck

On Wed, Feb 17, 2016 at 9:36 AM, Zoran Arizanovic <
zoran.arizanovic at gmail.com> wrote:

> 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