On Sun, Feb 1, 2009 at 12:19, mePt <[email protected]> wrote:
>
> i've resorted to basically a straight copy paste of the
> spSwissArmyManip example and have the name correct so when i hit the
> "T" button, the manips show up for my custom node...but during the
> "connectToDependNode" def, i get the error:
>
> // Error: line 1: (kInvalidParameter): Object is incompatible with
> this method
> # Traceback (most recent call last):
> ...
> #     dagNodeFn = OpenMaya.MFnDagNode(node)
> #   File "C:\engserv\rbuild\254\build\wrk\optim\runTime\Python\Lib
> \site-packages\maya\OpenMaya.py", line 2476, in __init__
> # RuntimeError: (kInvalidParameter): Object is incompatible with this
> method //

The swissArmyManip expects to work with swissArmyLocator, which is
derived from MPxLocator which is a DAG node. If you've changed it so
that the manip is associated with a non-DAG node type (e.g. a custom
node derived from MPxNode) then that would give the error that you're
seeing. You would need to use MFnDependencyNode rather than
MFnDagNode.

-- 
-deane

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to