AtrusDni
05-13-2009, 10:25 PM
Ok so im writing a script to edit a scenes shaders. Long story short, has anyone experienced this before?
Start a fresh scene, and create a blinn.
In the hypershade, you have the default lambert (lambert1) and the new blinn (blinn1).
In the script editor, do a type check on each of them:
nodeType lambert1;
// Result: lambert //
nodeType blinn1;
// Result: blinn //
Ok so far so good, each one reports back its correct node type. Now, if I do a list by type on all lambert materials . . .
string $lambert[] = `ls -type lambert`;
// Result: blinn1 lambert1 //
Why does it return the blinn as well? WTF? Is this a bug? If I list type blinn, only blinn1 is returned (as it should be). I dont get it . . .
Start a fresh scene, and create a blinn.
In the hypershade, you have the default lambert (lambert1) and the new blinn (blinn1).
In the script editor, do a type check on each of them:
nodeType lambert1;
// Result: lambert //
nodeType blinn1;
// Result: blinn //
Ok so far so good, each one reports back its correct node type. Now, if I do a list by type on all lambert materials . . .
string $lambert[] = `ls -type lambert`;
// Result: blinn1 lambert1 //
Why does it return the blinn as well? WTF? Is this a bug? If I list type blinn, only blinn1 is returned (as it should be). I dont get it . . .
