AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Undo with MDGModifier?
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Undo with MDGModifier?
Rate this thread
 
70340
 
Permlink of this thread  
avatar
  • draetsch
  • Posted: 17 August 2012 01:17 AM
  • Total Posts: 8
  • Joined: 25 September 2006 03:24 AM

Hi,

I am building a tool that changes the vertex colors of a mesh. For performance reasons I use OpenMayas MFnMesh.setFaceVertexcolors() method and it works great.

I also want to undo the changes I made, so I put in a MDGModifier as argument to the method and Undo also works fine.

The problem starts when a mesh does not have a construction history due to deleting it or duplicating an object. After that the MDGModifier.undoIt() does not work anymore.

Does someone have a hint on how to make it work again?

Thank you very much,

Cheers,

Malte



Replies: 0