BigRoyNL
12-16-2012, 11:03 AM
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?
Regards,
Roy Nieterau
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?
Regards,
Roy Nieterau
