PDA

View Full Version : Skin Wrap Reset Button?


bnvm
10-25-2005, 04:49 PM
I am trying to write a script that will reset the control objects for a skin wrap modifier. For example I have a character that is broken up into several parts - for my purposes it has to be in many pieces - each of which has a skin wrap modifier on it. I want to be able to reset the modifier assign a new control object to all at one time, and I also want to be able to reset the modifier if the deformations get messed up. The problem is the reset() option doesn't do exactly the same thing as the reset button.

If I have two spheres one with a skin wrap and the other is the control object. Now I deform the control object with a modifier and everything works as expected. Now I press the reset button on the skin wrap modifier and the object returns to its original shape. Next I disable the deforming modifier on the control object and the skin wrap objects deformation is now completely messed up. Now with the control object at its undeformed state if I execute $[#Skin_Wrap].meshDeformOps.reset() the skin wrapped object's deformation doesn't update and remains messed up. Now if I press the reset button the skin wrapped object returns to its original state and the deformations are not corrected. Does anyone know how to script a reset so that it does exactly what the reset button does?

Thanks in advance for your help,

-bnvm

CGTalk Moderation
10-25-2005, 04:49 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.