UsdEditTargetUndo#
- class omni.kit.usd_undo.layer_undo.UsdEditTargetUndo(edit_target: EditTarget)#
Bases:
UsdLayerUndo
A class for managing undo operations on a USD edit target.
This class provides methods to reserve and undo changes made to a USD layer through an edit target.
- Parameters:
edit_target – Usd.EditTarget The edit target to be managed for undo operations.
Methods
__init__
(edit_target)Initializes a UsdEditTargetUndo instance with the given edit target.
reserve
(path[, info])Reserves the specified path and info for undo, mapped to the edit target's namespace.
- __init__(edit_target: EditTarget)#
Initializes a UsdEditTargetUndo instance with the given edit target.
- Parameters:
edit_target (Usd.EditTarget) – The edit target to be managed for undo operations.
- reserve(path: Path, info=None)#
Reserves the specified path and info for undo, mapped to the edit target’s namespace.
- Parameters:
path (Sdf.Path) – The path to be reserved.
info (str, optional) – The info key to be reserved. If None, the entire spec is reserved.