PDA

View Full Version : theHold ? how to use it?


Gibbz
06-11-2006, 02:47 AM
Ok i have a few cases where undo() does not work in my code.

How do i use theHold to do what i want? For example

theHold.SuperBegin()
my code
my code
my code
theHold.SuperAccept "undo mycode"


I tryed that without any luck.

Thanks

Gibbz
06-14-2006, 11:23 PM
anyone any luck with this?

I have found that puting uno only where i change the object helps a little, but its still not what i want.....

f97ao
06-15-2006, 12:21 PM
Undo doesn't work for everything I'm afraid. What exactly is it that you would like to undo?

I experimented a little with theHold, but left it alone after a while, since it created quite some problems as well.

Myself i keep track if the user presses Undo and then make cleanups so that my program knows what is going on.

/Andreas

Gibbz
06-15-2006, 12:37 PM
mainly working with uv's while in edit poly mode, it seems to not like undoing changes here, instead when i press undo it will skip straight unding the selections ive made, and left my uv changes...

Blue
06-15-2006, 07:32 PM
Have you tried using the undo command?

undo "myCode" on
(
myCode
myCode
myCode
myCode
)

Gibbz
06-15-2006, 11:24 PM
yeah ive tryed that too, thats usually the worst way ive found

but having the undo at the end makes it more reliable... But still not perfect...

CGTalk Moderation
06-15-2006, 11:24 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.