kweso
09-03-2009, 06:11 PM
hello,
if i use a per particle delay script on more than one goal,
all my particles except for the first one disappear. maybe
you can help me....
in the first example i use the delay-script but just one goal:
http://www.kw350.com/tmp/anim1.gif
i have the two other particle clouds as a goal.
goalLine0 and 1 and goalExp and goalLength are custom
attributes on my first (active) particles. where the goalLines
are keyframe-animated.
this is my script:
int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalPP = `getAttr -t $wert particle1.goalLine0`;
in the second example i use two goals but i have no time-delay:
http://www.kw350.com/tmp/anim2.gif
the script:
int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalWeight0PP = particle1.goalLine0;
particleShape1.goalWeight1PP = particle1.goalLine1;
suddenly in the third example, where i combine the two things,
almost all particles disappear:
http://www.kw350.com/tmp/anim3.gif
and the script (btw: runtime after dynamics):
int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalWeight0PP = `getAttr -t $wert particle1.goalLine0`;
particleShape1.goalWeight1PP = `getAttr -t $wert particle1.goalLine1`;
here you can download the scenes (http://www.kw350.com/tmp/scenes.zip)
can you tell me why the particles disappear? or how i can create a similar effect in another way?
thank you very much!!
kws
if i use a per particle delay script on more than one goal,
all my particles except for the first one disappear. maybe
you can help me....
in the first example i use the delay-script but just one goal:
http://www.kw350.com/tmp/anim1.gif
i have the two other particle clouds as a goal.
goalLine0 and 1 and goalExp and goalLength are custom
attributes on my first (active) particles. where the goalLines
are keyframe-animated.
this is my script:
int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalPP = `getAttr -t $wert particle1.goalLine0`;
in the second example i use two goals but i have no time-delay:
http://www.kw350.com/tmp/anim2.gif
the script:
int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalWeight0PP = particle1.goalLine0;
particleShape1.goalWeight1PP = particle1.goalLine1;
suddenly in the third example, where i combine the two things,
almost all particles disappear:
http://www.kw350.com/tmp/anim3.gif
and the script (btw: runtime after dynamics):
int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalWeight0PP = `getAttr -t $wert particle1.goalLine0`;
particleShape1.goalWeight1PP = `getAttr -t $wert particle1.goalLine1`;
here you can download the scenes (http://www.kw350.com/tmp/scenes.zip)
can you tell me why the particles disappear? or how i can create a similar effect in another way?
thank you very much!!
kws
