Etape 31

Ouvrir l'expression editor et y copier le script

int $nbre=goal_particleShape.count;

string $recupX,$recupY,$recupZ ;

string $command; $i = 0;

while ($i < $nbre)

{

$recupX = ("locator_"+ $i +".translateX");

$recupY = ("locator_"+ $i +".translateY");

$recupZ = ("locator_"+ $i +".translateZ");

float $posX = `getAttr $recupX`;

float $posY = `getAttr $recupY`;

float $posZ = `getAttr $recupZ`;

$command = "particle -e -attribute position -order "+$i+" -vv " + $posX + " "+ $posY+ " " + $posZ + " goal_particle;";eval $command;

$i++;

}