Extract accel/vel fields of a particle?

   2298   2   1
User Avatar
Member
678 posts
Joined: July 2005
Offline
How can I extract the acceleration/vel attributes of a particle and assign it to another particle/geo. Example, if I have a particle moving under a force and now I want to use the acceleration/vel of that particle in some expression and assign it to say a pos field of box SOP or vel field of a force.
thanks,
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
I think you can use point() expression to extract acceleration(accel) and velocity(v) of a particle. (file attached)
point(“../popnet1”,$PT,“accel”,0)
point(“../popnet1”,$PT,“v”,0)
0 is the component no, returning x component. 1 for y component and 2 for z
go to windows > hscript textport and type
exhelp point. It will give you clear idea of how point function works.

Attachments:
extract particle accel.hipnc (38.2 KB)

User Avatar
Member
678 posts
Joined: July 2005
Offline
Hey Thanks,
That definitely helps a lot.
  • Quick Links