Getting undo labels

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 06 June 2010   #1
Getting undo labels

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

-Johan
__________________
Online: LinkedIn
 
Old 06 June 2010   #3
I want to query the last undo string
__________________
RR
 
Old 06 June 2010   #4
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  
 	disableRefMsgs()
 	max undo
 	max redo
 	enableRefMsgs()
 	callbacks.removescripts id:#undoCheck
 )
 
 
Old 06 June 2010   #5
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...
__________________
RR
 
Old 06 June 2010   #6
wow that is some hack! Thanks, I was looking for something similar.
 
Old 06 June 2010   #7
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:12 PM.


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