disabled#

omni.kit.undo.disabled()#

Prevent commands being added to the undo stack.

This function is a context manager.

Example:

with omni.kit.undo.disabled():
    omni.kit.commands.execute("Foo1")
    omni.kit.commands.execute("Foo2")