> <<Lastly, we'll be working with Autodesk to improve this bridge
> between API and maya.cmds.>>
> Wow, this sounds really promising :) !
i certainly don't want to make any promises on autodesk's behalf, but
they realize that this is an issue that needs to be resolved and have
been interested in our input.
on a related note, a new API method was added in 2009,
MObjectHandle.hashCode, based on our recommendations, which is the
basis of our new name-independent dictionary support:
>>> c = polyCube()[0]
>>> d = { c : "some data goes here" }
>>> c.rename( 'foobar' )
Transform('foobar')
>>> d[c]
'some data goes here'
so in 2009+ you can retrieve data from a dictionary using PyNodes as
keys even if the object's name changes.
-chad
On Mar 16, 2009, at 9:20 AM, Sebastian Thiel wrote:
>
> >
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---