EnableXformOpCommand#

class omni.kit.property.transform.EnableXformOpCommand(op_attr_path: str)#

Bases: Command

A command to add an attribute’s corresponding XformOp to the xformOpOrder array.

Parameters:

op_attr_path (str) – The path of the xformOp attribute to be added to the xformOpOrder.

Example

To add xformOp:translate to the xformOpOrder token array, ensure that the xformOp:translate attribute exists and is not already present in the xformOpOrder.

Methods

__init__(op_attr_path)

Initializer for the EnableXformOpCommand object.

do()

Executes the command, enabling the specified transformation operation.

undo()

Reverts the changes made by the `do` method, effectively undoing the command.

__init__(op_attr_path: str)#

Initializer for the EnableXformOpCommand object.

do()#

Executes the command, enabling the specified transformation operation.

undo()#

Reverts the changes made by the `do` method, effectively undoing the command.