View Full Version : Maya API Generic Attribute (Universal input-output type)

12 December 2012, 12:03 PM
Hey Guys,

I'm trying to create a node that supports any input and output. I could use the MFnGenericAttribute and add all the types with addAccept for both the input and output. For the input that's ok.

But I want the user to only be able to connect something to the output plug that's actually of the type of the input. So I need to be able to update the type of output supported based on the connection to the input plug. But when I try updating the addAccept states of the output plugs in the connectionMade and connectionBroken methods maya keeps crashing when I try to connect something to the output.

Any tricks/workarounds for this?

Roy Nieterau

CGTalk Moderation
12 December 2012, 12:03 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.