PDA

View Full Version : particle position problem


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?

Scob
11-13-2007, 10:09 AM
Hi ,
I think that for your problem , you can use in creation expression the "birthWorldPosition" attribute . You can find it , in general attribute of your particleShape.

Hope it helps !

Jerome

Wattana
11-13-2007, 11:30 AM
Hi!!

I think you must better use:
vector $pos = particleShape1.worldPosition;
instead of .position

Hope it helps.

Regards!!

CGTalk Moderation
11-13-2007, 11:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.