RemoveSublayerCommand#

class omni.kit.usd.layers.RemoveSublayerCommand(
layer_identifier: str,
sublayer_position: int,
usd_context: str | UsdContext = '',
)#

Bases: AbstractLayerCommand

Removes a sublayer from parent layer.

Methods

__init__(layer_identifier, sublayer_position)

Constructor.

do_impl()

Abstract do function to be implemented.

undo_impl()

Abstract undo function to be implemented.

__init__(
layer_identifier: str,
sublayer_position: int,
usd_context: str | UsdContext = '',
)#

Constructor.

Keyword Arguments:
  • layer_identifier (str) – The identifier of layer to remove sublayer.

  • sublayer_position (int) – The sublayer position to be removed.

  • usd_context (Union[str, omni.usd.UsdContext]) – Usd context name or instance. It uses default context if it’s empty.

do_impl()#

Abstract do function to be implemented.

undo_impl()#

Abstract undo function to be implemented.