RemoveXformOpCommand#
- class omni.kit.property.transform.RemoveXformOpCommand(
- op_order_attr_path: str,
- op_name: str,
- op_order_index: int,
Bases:
CommandA command to remove an XformOp from the xformOpOrder attribute without deleting the attribute itself.
- Parameters:
op_order_attr_path (str) – The path of the xformOpOrder attribute.
op_name (str) – The name of the xformOp to be removed.
op_order_index (int) – The index of the xformOp in the xformOpOrder array.
Example
If one needs to remove xformOp:translate from the xformOpOrder token array, this command would be used while keeping the xformOp:translate attribute intact.
Methods
__init__(op_order_attr_path, op_name, ...)Initializes the RemoveXformOpCommand.
do()Executes the command to remove a specific XformOp.
undo()Reverts the removal of a specific XformOp.
- __init__(
- op_order_attr_path: str,
- op_name: str,
- op_order_index: int,
Initializes the RemoveXformOpCommand.
Detailed documentation is optional.
- do()#
Executes the command to remove a specific XformOp.
- undo()#
Reverts the removal of a specific XformOp.