|
I’m trying to programmatically create a shader that uses a layeredTexture for it’s color input. The layered texture has an inputs attribute which is an array that accepts other textures as inputs. I’m trying to figure out how to append multiple input textures to this attribute.
If I create a new layered texture node and execute:
attributeQuery -numberOfChildren -node layeredTexture1 inputs
it returns 4, even though it has zero inputs. What’s the right way to query the size of this attribute array?
Also, why won’t this work?
connectAttr -f file1.outColor layeredTexture1[0].inputs.color
|
|
|