View Full Version : Undo task

02 February 2004, 12:34 PM
I'm coding a little script which rotate randomly the selected objects. It use a loop, and for eahc object apply a random rotation.

But I don't want maya to add each rotations made by the loop. I want it register only one action named for instance "Random rotations". Undo it would replace each objects in the old rotation position.

How to?

02 February 2004, 06:01 PM
If I was not clear enough : When I undo a function its displaying as I typpen the fucntion. I want "// Undo : Surface Spread"

spreadObjectsOnSurface($rocks, "mountain", 10, off);
// Undo: spreadObjectsOnSurface($rocks, "mountain", 10, off);

CGTalk Moderation
01 January 2006, 11:00 AM
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.