Rotate Objects by Concatenation

From scripting
Revision as of 19:58, 24 April 2017 by Nickpisca (talk | contribs) (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");...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.