Message 1 of 1
Undo Stack
Not applicable
12-29-2008
08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am wondering if there is any way to read from the undo stack. What I'm trying to accomplish is a repeat last tool similar to the <EditablePoly>.RepeatLastOperation() function, but works outside of poly. My thought on how to do this is to watch the undo stack since it is already recording most actions that are happening in a scene to help me accomplish this. The closest thing I found in the max script documentation was using the #sceneUndo callback function and notificationParam() function, but it only returns a string name of the basic operation such as, "Create Selection Set" or "Add Modifier" and not the actual operation.
Any help with the undo stack, or suggestions on other venues that I should be looking at rather than the undo stack to accomplish this are appreciated.
callbacks.addScript #sceneUndo "format \"Undo: %\\n\" (callbacks.notificationParam())" id:#test
Any help with the undo stack, or suggestions on other venues that I should be looking at rather than the undo stack to accomplish this are appreciated.