PDA

View Full Version : Undo task


Nicool
02-11-2004, 11:34 AM
Hye,
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?

Nicool
02-13-2004, 05: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-17-2006, 10: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.