Community
Maya Dynamics
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya dynamics topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

nParticles move every other frame...

1 REPLY 1
SOLVED
Reply
Message 1 of 2
slimboJoe
332 Views, 1 Reply

nParticles move every other frame...

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.

 

 

1 REPLY 1
Message 2 of 2
slimboJoe
in reply to: slimboJoe

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. 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report