Hi, I'm also new to python plugin creation in Maya but with a little struggle I managed to create my own simple manipulator<http://riggerman.animationblogspot.com/2008/11/15/maya-custom-manipulatorlocator/>! :)
Weird. I duplicated the swissArmyManip.py from the scripted plugins folder as swissArmyManip2.py and did a Search&Replace for keywords: * spSwissArmyLocator* to *spSwissArmyLocator2*... Then changed the kSwissArmyLocatorId and kSwissArmyLocatorManipId so they don't conflict with the original swissArmyManipulator. Loaded both scripts into memory and created working locators with their respective manipulators at the same time without any errors. You sure you didn't change anything else on the script? Sorry I'm not of much help, I'm still beginning in Python and really can't identify the problem from these errors. Richard On Sun, Feb 1, 2009 at 5:19 PM, mePt <[email protected]> wrote: > > so i've never created a manipulator for a node in maya before, and am > attempting to get one working on a new custom node. it's definitely > not needed, but would be nice for some more user input options. > > 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 // > > --------------------- > > like i mentioned, i'm basically at a copy/ paste point of the working > example, just changed some names to make it work...i've got to have > something basic that i'm missing, i'd assume. > > any ideas? > > thanx in advance > > > --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
