Thursday, January 29, 2009

Scripts - Stage5

// this script introduces the rand() function

float $rotate = 6.5;
//int $int = 1;
//string $string = "pCube";

int $i = 1;
while ($i<50){
//trick to refresh the frame
currentTime $i;

//$rotate = (1 * $i) + 2;
$rotate = rand(2);

//duplicate, move and rotate
duplicate -rr;
move -r 0 -0.275236 0 ;
rotate -r -os 0 0 $rotate ;


//counts
$i = $i + 1;
}

No comments:

Post a Comment