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

Zoran Arizanovic zoran.arizanovic at gmail.com
Wed Feb 17 13:54:36 EST 2016


thanks guys
this one works
fit01(rand(stamp("..", "FORVALUE",0)),-180,180)
yes it is on single primiiteve inside for each sop node


Zoran Arizanovic
LinkedIn <http://www.linkedin.com/pub/zoran-arizanovic/4/177/295>


On Wed, Feb 17, 2016 at 7:03 PM, David Johnson <daveinengland at gmail.com>
wrote:

> I think the problem is in the $PR. If you use a Primitive SOP, and put
> your expression in the rotate parameters, you'll get a different
> result on each primitive. But inside a foreach loop, you might be in
> VEX context where $PR doesn't evaluate. Or are you using a ForEach
> SOP? I don't really understand that SOP, so I can't help you there.
>
> Dave
>
> On 2/17/16, 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
> >
> _______________________________________________
> 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