begin_disabled

omni.kit.undo.begin_disabled()

Begin preventing Commands being added to the undo stack. Must be paired with a subsequent call to end_disabled()