Notifications
Clear all

[Closed] theHold ? how to use it?

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.[b]SuperBegin/b
my code
my code
my code
theHold.SuperAccept “undo mycode”

I tryed that without any luck.

Thanks

5 Replies

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…

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

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…

Have you tried using the undo command?

undo "myCode" on
(
	 myCode
 	 myCode
 	 myCode
 	 myCode
 )

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…