Rotate Objects by Concatenation

From scripting
Jump to: navigation, search
for ($x = 1; $x<91; $x++){

currentTime 1
setKeyframe -breakdown 0 ("nurbsSphere"+$x+".rotate");
currentTime 260 ;
setKeyframe -breakdown 0 ("nurbsSphere"+$x+".rotate");

float $randx = rand(-360,360);
float $randy = rand(-180,560);
float $randz = rand(-555,760);

rotate -r -os $randx $randy $randz ;
}


More information on attribute keyframing, read pages 119-122 in YSYT.