On Fri, Oct 17, 2008 at 2:35 PM, darmagreb <[EMAIL PROTECTED]> wrote: > > Working a script that needs to create a series of clipboardItems, and > getting unexpected results when querying out the name (calling > nodeName()). The call returns a string bearing no resemblance to the > one passed in the preceding setNameInfo() call. > > Is there something different I need to do to query it out, given that > the return type of the nodeName call is supposed to be an MString, > rather than a python string? In most every other situation I've seen, > the python API handles the switch between MStrings and python strings > pretty seamlessly so this result strikes me as odd (potential user > error?).
The problem occurs whenever an API method returns a reference to an MString, which is what MAnimCurveClipboard::nodeName() does. This is a known bug which will be fixed in a future version of Maya. I'm not aware of any workaround other than dropping into C++. -- -deane --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
