TheRispo
10-29-2009, 10:28 PM
Hi everyone.. Here's the problem. I made a simple little script to create a particle in the position of any object the user selects... and everything works fine the first time I hit play..but if I rewind or until the playback loops, the particles just dissapear... this puzzles me because it's not the first time I use this script...
It's a new scene, the created particles does not have any expression, and the lifespanMode is "live forever".
Here's the code to create the particles on the selected objects... maybe there's the issue??...
global proc createPart(string $partName){
string $selection[] = `ls -sl`;
particle -n $partName;
for ($sel in $selection){
float $objPos[] = `xform -q -ws -t $sel`;
emit -object $partName -position $objPos[0] $objPos[1] $objPos[2];
}
}
I'll be thankfull if any of you guys could check it out
Thanks
Edit: I'm not sure if the scenes were attached correctly (looks like they don't).. so heres a rapidshare link to my scene... thanks
http://rapidshare.com/files/299748007/particlesDissapear.zip.html
It's a new scene, the created particles does not have any expression, and the lifespanMode is "live forever".
Here's the code to create the particles on the selected objects... maybe there's the issue??...
global proc createPart(string $partName){
string $selection[] = `ls -sl`;
particle -n $partName;
for ($sel in $selection){
float $objPos[] = `xform -q -ws -t $sel`;
emit -object $partName -position $objPos[0] $objPos[1] $objPos[2];
}
}
I'll be thankfull if any of you guys could check it out
Thanks
Edit: I'm not sure if the scenes were attached correctly (looks like they don't).. so heres a rapidshare link to my scene... thanks
http://rapidshare.com/files/299748007/particlesDissapear.zip.html
