Etape 28
selectionner toutes les feuilles excepté le model ("leaf_model") et utiliser le script suivant pour dupliquer le nouveau model de feuille à l'emplacement de chaque ancienne feuille
string $list[] = `ls -sl`;
int $size = size($list);
matrix $leaf_position[20000][3];
string $command;
//----------save position in an array--------------
for ($i=0; $i <$size; ++$i)
{
$command = "$leaf_position[" + $i + "][0] = `getAttr leaf_"+ $i + ".rotatePivotX`;";eval $command;
$command = "$leaf_position[" + $i + "][1] = `getAttr leaf_" + $i + ".rotatePivotY`;";eval $command;
$command = "$leaf_position[" + $i + "][2] = `getAttr leaf_" + $i + ".rotatePivotZ`;";eval $command;
}
$i=0;
//----------------------duplicate------------------------
while ($i < $size)
{
select -r leaf_model ;
duplicate;
$command = "move -r " + $leaf_position[$i][0] + " " + $leaf_position[$i][1] + " " + $leaf_position[$i][2] ;eval $command;
$i++;
}