Hi All,
I have a listConnections command in a "for" loop, and I can't get it to work:
string $shaderFile[];
string $myShadef;
int $countingTexArray = 0;
for ( $myshadef in $shorterList )
{
print ("\t"+ $myShadef +"\n");
string $myshaderColor = ($myShadef+".color");
$shaderFile[$i] = listConnections -source true -destination false $myshaderColor;
$countingTexArray++ ;
print ("\t: " + $shaderFile[$i] + "\n");
}
The error reads: "Cannot convert data of type string[] to type string"
If I change things around, the array shadeFile will only hold the first value assigned the first time it runs inside the loop.
Thanks for any help.
Igloo1967