If your using the MFnSkinCluster class, it can capture the old values in a MDoubleArray as they are changed in the doIt/redoIt so you can use them in the undo. If speed performance is not an issue then the skinPercent command will work. But, you have to capture the old results first. I used the MFnSkinCluster and changed the weights for one vert at once rather then looping through the joints and the difference was worth it.

Adam was responding so fast I could not get my answers out in time.

-brian
www.meljunky.com
-------- Original Message --------
Subject: [Maya-Python] Re: Undo/Redo
From: Adam Mechtley <[email protected]>
Date: Thu, October 15, 2009 5:49 pm
To: [email protected]

put the script in a folder in your plug-ins path and load it from the plug-in manager

On Thu, Oct 15, 2009 at 4:46 PM, Brandon Harris <[email protected]> wrote:

ok, so I suppose since the undo in my case would simply take the
oldWeights and reapply them back it shouldn't be too difficult. Since
I'm in python, would I be able to just setup the command and simply
import it ,or is there a certain way of getting it to a usable state?
(put it in the Plugins folder and load it?




--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to