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. :-)
On Friday, February 12, 2021 at 2:56:23 PM UTC+1 Philippe Leprince wrote: > 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 > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7725cc5a-ed69-4b64-88c3-cd815749ba2bn%40googlegroups.com.