Hallo,
Im not great at MEL, and spend way to much time on figuring stuff out. What I would like to achieve: I
v got particles floating around in the scene, driven by forces.
I would like to query the world positions and velocity of the
particles on a certain frame, say frame 50.
Then on frame 450 I would like the particles to return to
the positions and velocity they were at frame 50.
So far I have only tried to get them back to the positions of frame 50, with out any success.
What I have is:
vector $gPP = <<0,0,0>>;
float $currentTime = currentTime -q
;
if ($currentTime == 50){
getAttr particleShape2.position;
$gPP = particleShape2.position;
//print $gPP;
}
if ($currentTime == 450){
particleShape2.position = $gPP;
}
Can you please tell me if I`m on the right track, and give my a nudge in the right direction.
Thanks
Jakes