maya.api.OpenMaya.MPxNode Incorrect legalConnection args given

maya.api.OpenMaya.MPxNode Incorrect legalConnection args given

Anonymous
Not applicable
460 Views
0 Replies
Message 1 of 1

maya.api.OpenMaya.MPxNode Incorrect legalConnection args given

Anonymous
Not applicable

I am making a node plugin That is derived from maya.api.OpenMaya.MPxNode, kDependNode

with 2 MFnMessageAttributes [manager and managed]

and i want to make sure that only managed attr can be connected to a manager attr.

but when debugging the function legalConnection(self, plug, otherPlug, arsSrc)

i found that both plug and otherPlug are the same thing. 

i then made the same node plugin with the old python api and it works as expected. is this bug or am just going insane 🙂 

461 Views
0 Replies
Replies (0)