Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Arbitrary shading node's output name?
  RSS 2.0 ATOM  

Arbitrary shading node's output name?
Rate this thread
 
44123
 
Permlink of this thread  
avatar
  • oodini
  • Posted: 09 June 2010 03:55 AM
  • Total Posts: 16
  • Joined: 13 November 2006 02:38 AM

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.



Replies: 0