group

omni.kit.undo.group()

Group multiple commands in one.

This function is a context manager.

Example:

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