|
Hello,
I’m trying to add some output to a custom node, but Maya doesn’t want to display them when I click in the swatch on the small triangle on the bottom-right corner. The hypershade GUI seems to display my outputs only if I name them outColor or outTransparency. That doesn’t work with outAlpha. But htis one is visible in the cionnection editor.
here is the code to create the outputs :
// This one is OK
aOutColor = nAttr.createColor("outColor", "oc")
nAttr.setHidden(false)
nAttr.setReadable(true)
nAttr.setWritable(false)
// This one is not displayed
aOutAlpha = nAttr.create("outAlpha", "oa", MFnNumericData::kFloat)
nAttr.setHidden(false)
nAttr.setReadable(true)
nAttr.setWritable(false)
If I do a listAttr, the outAlpha attribute is listed.
|
|
|