Difference between revisions of "Rotate Objects by Concatenation"

From scripting
Jump to: navigation, search
(Created page with " for ($x = 1; $x<91; $x++){ currentTime 1 setKeyframe -breakdown 0 ("nurbsSphere"+$x+".rotate"); currentTime 260 ; setKeyframe -breakdown 0 ("nurbsSphere"+$x+".rotate");...")
 
(No difference)

Latest revision as of 19:58, 24 April 2017

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.