add_history

omni.kit.undo.history.add_history(name: str, kwargs: dict, level: int)

Add a Command execution to the history.

Takes: (Command name, Arguments, Groupping level). Return: index that can be used to modify it later