websdas
11-13-2007, 01:58 AM
i wanna to get the particle position in creation, but i found that i could get this correctly in runtime only.
The following was what i have tried in creation and runtime :
vector $pos = particleShape1.position;
setAttr locator1.tx ($pos.x);
setAttr locator1.ty ($pos.y);
setAttr locator1.tz ($pos.z);
After writting the above expression in creation and runtime after dynamic, i found that the "locator1" could attach to particle1 correctly in runtime except creation.
I also checked the particle position by printing it out, and found that "particleShape1.positon" could not get the correct world position of particle1 in creation. How come? Did i do anything wrong? How can i get the correct world position of particle in creation?
The following was what i have tried in creation and runtime :
vector $pos = particleShape1.position;
setAttr locator1.tx ($pos.x);
setAttr locator1.ty ($pos.y);
setAttr locator1.tz ($pos.z);
After writting the above expression in creation and runtime after dynamic, i found that the "locator1" could attach to particle1 correctly in runtime except creation.
I also checked the particle position by printing it out, and found that "particleShape1.positon" could not get the correct world position of particle1 in creation. How come? Did i do anything wrong? How can i get the correct world position of particle in creation?
