if any material(ex :- Lambert) attributes transparency & color has connected to file,
i need to get the result it has connected to file1(transparency) & file2(color).
if any material(ex :- Lambert) only attribute color has connected to file ,
i need to get the result it has connected file1(color).
string $sel[] = `ls -type lambert`;
for( $s in $sel)
{
string $attr = $s + ".transparency";
string $inConnections[] = `listConnections -d 0 -s 1 -type "file" $s`;
string $at = $s + ".color";
string $inc[] = `listConnections -d 0 -s 1 -type "file" $at`;
if( size($inConnections) > 0){
print($s);
}
else{
print ($s);
}
}