Undo issue any suggestions

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 09 September 2009   #1
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?
__________________
Paul Neale
http://paulneale.com
 
Old 09 September 2009   #2
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.
__________________
Paul Neale
http://paulneale.com
 
Old 09 September 2009   #3
You're gonna end up writing your own 3d app if you keep this pace up. =P
__________________
MatManager - take control of your materials
Teacup - online material sharing inside 3D Studio
 
Old 09 September 2009   #4
Some body, any one! I need an INTERVENTION! Stop meeeeeeeee
__________________
Paul Neale
http://paulneale.com
 
Old 09 September 2009   #5
Originally Posted by PEN: 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.

Last edited by denisT : 09 September 2009 at 04:29 PM.
 
Old 10 October 2009   #6
Pleeeeeeeeeeeese stop me!

__________________
Paul Neale
http://paulneale.com
 
Old 10 October 2009   #7
And this is probably when you'll find that MAX already has a window just like that built in. =P
__________________
MatManager - take control of your materials
Teacup - online material sharing inside 3D Studio
 
Old 10 October 2009   #8
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
__________________
Online: LinkedIn
 
Old 10 October 2009   #9
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.
__________________
Regards,
Pete

Read my technical blog - lonerobot.net
 
Old 10 October 2009   #10
Your right, maybe I should go model and texture some thing:S
__________________
Paul Neale
http://paulneale.com
 
Old 10 October 2009   #11
Looks interesting, what does it do paul?
 
Old 10 October 2009   #12
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.
__________________
Paul Neale
http://paulneale.com
 
Old 10 October 2009   #13
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.
__________________
Disclaimer: My opinions are not those of my employer.


 
Old 10 October 2009   #14
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:13 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.