[Maya-Python] Re: dynamic particle field example

2009-07-07 Thread alessandro pepe
Marcin you are great, I'll study it this evening as soon as I get back home. really thank you Alessandro On Mon, Jul 6, 2009 at 4:54 PM, Marcin Majewski wrote: > > Here's simple field that adds force to particles based on particle id. In > this field I use only particle positions and velocities,

[Maya-Python] Re: dynamic particle field example

2009-07-06 Thread Marcin Majewski
Here's simple field that adds force to particles based on particle id. In this field I use only particle positions and velocities, but in similar way you can obtain mass and other particle attributes using MPxFieldNode static variables ( check torusField.py in devkit). import sys import maya.OpenM