Feb
28
Code:
int $k = 0;
//Start from 0 to total obj in list
while( $k < size($objSel) ) {
//Set inSingle of inShape based on counter
setAttr ($sssName+".i[$k].it `rand 1`");
print "\n";
print $objSel[$k];
print "\n";
//`rand 1` above generates a random number on the fly
$k++;
//Better increment the counter or you'll be stuck in a loop
}
is giving error // Error: Invalid attribute index: gfnsss.i[$k].it `rand 1` // why ?
Post a Comment