Node conversion on scene read

12 views
Skip to first unread message

Philippe Leprince

unread,
Feb 12, 2021, 8:56:23 AMFeb 12
to Python Programming for Autodesk Maya
Hi there

I have scenes containing nodes with attributes that were renamed. My goal is to convert the scene on the fly.

I found a MSceneMessage callback to fix broken connections (due to the missing attr) but I could not find a callback to grab the old attribute value and store it into the new one.
Any suggestion ?

Cheers

Philippe Leprince

unread,
Feb 12, 2021, 9:47:55 AMFeb 12
to Python Programming for Autodesk Maya
As often, I ended up finding the solution just after asking...
I am using MFnDependencyNode.setAlias in my generic post-constructor to set the old attribute name as an alias to the new one.
Seems to works fine. :-)

Reply all
Reply to author
Forward
0 new messages