This is Maya 2016 Extension 2 SP1.
I didn't research this a ton, but when I use this in the Expression editor for the particles (before or after dynamics), the particles move every other frame:
vector $pos;
$pos = fuelParticles_FINEShape.position;
If I use the getAttr command to assign the variable, it works as expected.
vector $pos; $pos = `getAttr fuelParticles_FINEShape.position`;
Seems like a bug. The DOCS say to assign variables the first way. Any ones thoughts on this is appreciated.
Solved! Go to Solution.
Solved by slimboJoe. Go to Solution.
OK, never mind what you read in this post. I figured out the problem. User error. I was using the same variable in two different particles.
I kind of thought the variables were local, but I guess not. Not sure if this is made clear anywhere, but now I know. Now you know if you read this and didn't know. And you're laughing at me if you read this and you DID know.
And I know better than to use a GETATTR in an experssion. It gave the illusion of fixing it because it created an error, which prevented the 2nd particle expression from doing anything, which caused the 1st particles to behave correctly.