Getting undo labels

Become a member of the CGSociety

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

Thread Tools Search this Thread Display Modes
  06 June 2010
Getting undo labels

Is there anyway to access the label for the last undo entry (or any for that matter)?
  06 June 2010
Like you want to create a label with your maxscript undo statement, or you want to undo by maxscript to a certain label?

Online: LinkedIn
  06 June 2010
I want to query the last undo string
  06 June 2010
Originally Posted by Rorschach: I want to query the last undo string

unfortunately there is no easy way to get last undo label (or list of label). It's possible to do it with max SDK, but I don't know the way how to do it with MXS.
but there is some workaround:

 with redraw off 
 	global LastUndoLabel
 	callbacks.addscript #sceneUndo "format \"Undo Label: %\\n\" (LastUndoLabel = callbacks.notificationParam())" id:#undoCheck  
 	max undo
 	max redo
 	callbacks.removescripts id:#undoCheck
  06 June 2010
Thanks, your code gives me another idea for what I want to do.

Incedently, what do disableRefMsgs()enableRefMsgs() actually do? The help file isn't very helpful about this...
  06 June 2010
wow that is some hack! Thanks, I was looking for something similar.
  06 June 2010
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
Society of Digital Artists

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

All times are GMT. The time now is 08:33 PM.

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