Setting random velocity per particle

   11619   6   3
User Avatar
Member
39 posts
Joined: Jan. 2014
Offline
Hi everyone,

I'm trying to set a random velocity per particle using fit01.

In my POP Source, in velx I wrote :

fit01(rand(@id), -5, 5)

Is there a reason why this wouldn't work?

What does work is

fit01(rand($F), -5, 5) but that makes all my particles per frame go in the same direction.



Thanks!

Max
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
In my POP Source, in velx I wrote :

fit01(rand(@id), -5, 5)

Is there a reason why this wouldn't work?

Because popsource does have Use VEXpressions field. You can only use hscript or python expressions.
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
Use popwrangle or voppop.
User Avatar
Member
39 posts
Joined: Jan. 2014
Offline
I tried using the POP wrangle but it still isn't working.

I think I might not be calling the right attribute.

in the POP wrangle I wrote :

velx = fit01(rand(@id), -5, 5);

I'm pretty sure the velx is the issue…
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
in the POP wrangle I wrote :

velx = fit01(rand(@id), -5, 5);

It's @v.x not velx
User Avatar
Member
39 posts
Joined: Jan. 2014
Offline
Thanks Pradeep!
User Avatar
Member
9 posts
Joined: June 2011
Offline
Also thanks for the info
  • Quick Links