LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

pymel duplicate crashes maya during redo #391

Closed benbatya closed 7 years ago

benbatya commented 7 years ago

Hi, Thanks for this awesome toolkit. I'm using it a lot for a project and its made everything easier.

However, I did run into a problem with pymel.core.general.duplicate.

I'm on Maya 2016 and using the default implementation of pymel. I used pm.duplicate() with a couple of transforms with shapes as leaves selected. Then I performed an undo and then redo, Maya usually crashes immediately

If duplicate() is given the list of nodes to duplicate manually, it crashes more consistently.

maya.cmds.duplicate() works correctly all of the time.

Sincerely, Ben

pmolodo commented 7 years ago

Hmm... can you provide a script we can use to replicate the issue? Or a more precise set of steps?

benbatya commented 7 years ago

Nevermind, I can't reproduce it. I think that the crash was actually related to a totally different issue of using undoInfo(openContext=True) and making sure that all changes actually occur within the context. Maya's signals make this surprisingly difficult (but not Qt signals...)

pmolodo commented 7 years ago

Ok, going to close this issue then!