View Full Version : Undo issue any suggestions
I'm editing keys with a Max script UI, I'm using a dotNet based UI and in a mouseMove event I'm moving keys. If I wrap the undo on around the code in the mouseMove event it is capturing every move, not the whole move. So I get 100 undos in no time at all. I want to capture the whole move, any way around it that you see?
|
|
I don't think there is a solution to it so I have just written my own undo functions. Works just the way I need now.
MarcoBrunetta
09-30-2009, 03:48 PM
You're gonna end up writing your own 3d app if you keep this pace up. =P
Some body, any one! I need an INTERVENTION! Stop meeeeeeeee;)
denisT
09-30-2009, 04:26 PM
I'm editing keys with a Max script UI, I'm using a dotNet based UI and in a mouseMove event I'm moving keys. If I wrap the undo on around the code in the mouseMove event it is capturing every move, not the whole move. So I get 100 undos in no time at all. I want to capture the whole move, any way around it that you see?
I have a lot of tools which are working on mouse move. Because I control all mouse moves, mouse start, and mouse stop, usually I do any ZERO but undoable operation (like move on [0,0,0]) on mouse start (down) and do all other changes with undo off on move. On mouse end (Up) I check for cancel (right click or ESC). If it was canceled I do max undo .
Second solution is to use theHold interface. You can start a BLOCK of operations with UNDO and end it after some condition. (see theHold in MXS Help). It's a better way then first one, because in case of CANCEL you can cancel your undo block, restore "pre undo" state, and "undo string name" will not go in undo/redo stack.
Pleeeeeeeeeeeese stop me!
http://penproductions.ca/temp/scripts/composer10.jpg
MarcoBrunetta
10-01-2009, 02:04 AM
And this is probably when you'll find that MAX already has a window just like that built in. =P
Paul, maybe it's time to change "R&D/Technical Director" to "Application Developer" ;)
Although I'm sure there's lots of R&D going on!
Looks pretty complex!
-Johan
LoneRobot
10-01-2009, 08:25 AM
You have to love that. But come on Paul, enough is enough. There is more to life than making UI controls for 3D programs. err...can someone please let me know what that is.
Your right, maybe I should go model and texture some thing:S
DanLane
10-01-2009, 07:54 PM
Looks interesting, what does it do paul?
NLA editor for mechanical animations. The system is driven with five scripted geometry plugins and this master UI called composer.
Can't say much more then that.
Looks to me like a NLA control for cameras, lighting rigs, stage rigs, cranes etc.. and calling it composer it sounds like something to so with that.
CGTalk Moderation
10-02-2009, 03:34 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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.