what am i doing wrong here


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
//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 ?

No Responses to “what am i doing wrong here”

Post a Comment