Skip to content

Instantly share code, notes, and snippets.

@lukpazera
Last active June 18, 2019 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukpazera/a6cddb5948f9a5cf947b40a18480e0fb to your computer and use it in GitHub Desktop.
Save lukpazera/a6cddb5948f9a5cf947b40a18480e0fb to your computer and use it in GitHub Desktop.
This is piece of MODO config allows for defining a command (my.command) as part of undo group (myUndoGroup). 'undoPlusPrevious' means that when undoing my.command it will do one more undo step automatically. It allows for bundling multiple commands into one undo step.
http://modo.sdk.thefoundry.co.uk/wiki/Command_(lx-command.hpp)#.2814.29_SDK:_Undo_Group_Command_Example
<atom type="CommandUndoGroup">
<hash type="Command" key="my.command">myUndoGroup</hash>
<hash type="GroupBehavior" key="myUndoGroup">undoPlusPrevious</hash>
</atom>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment