XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : Getting undo labels

06-16-2010, 09:28 AM
Is there anyway to access the label for the last undo entry (or any for that matter)?

06-16-2010, 11:50 AM
Like you want to create a label with your maxscript undo statement, or you want to undo by maxscript to a certain label?


06-16-2010, 12:12 PM
I want to query the last undo string

06-16-2010, 04:06 PM
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-16-2010, 05:07 PM
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-16-2010, 05:08 PM
wow that is some hack! :cool: Thanks, I was looking for something similar.

CGTalk Moderation
06-16-2010, 05:08 PM
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.