making commands that are ignored in undo queue?

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
  05 May 2003
making commands that are ignored in undo queue?

I'm wondering... is there a way to run commands but not have them acknowledged in the undo queue? Like for instance, if you have a slider that that do something whenever it's moved and you hold down the mouse and drag it around, the undo queue gets filled up with all these small changes, which is really annoying! Anyway to write mel stuff that bypasses the undo queue?

Thanks!
 
  05 May 2003
hey, for scripts and such you can flip the undo que off for your operations (w/o a flush), and back on at completion ...but for a slider im not sure, as you can only call _after_ a change =(
 
  05 May 2003
hmm koolies, thnx! ahh, that's interesting to know... I was mainly hoping that there'd be a way to flip undo off without flushing, hooray!
 
  09 September 2003
I also needed this, to be exact you need to use:

undoInfo -stateWithoutFlush off;
undoInfo -stateWithoutFlush on;

to turn it off and on without flushing the undo buffer. Nice!
__________________
www.cgskies.com/ - 300+ HDR panoramic skies!
www.cgtextures.com/ - I like textures!
 
  09 September 2003
Hi there

...I would be careful with this feature though. The Maya API more or less assumes that the Undo restores the state to *exactly* the state it was in before the command... i.e. a command assumes that its environment *before* it undos itself is exactly as it was *after* it did whatever it did (a command is required to be able to undo itself if it alters the scene state).

Now if we're only talking about changing a parameter you're probably safe as long as this won't change DG connections or anything vital.

Just wanted to mention this.

Cheers!
/ Daniel
 
  01 January 2006
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 08:42 AM.


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