MovePrimSpecsToLayerCommand#

class omni.kit.usd.layers.MovePrimSpecsToLayerCommand(
dst_layer_identifier: str,
src_layer_identifier: str,
prim_spec_path: str,
dst_stronger_than_src: bool,
usd_context: str | UsdContext = '',
)#

Bases: AbstractLayerCommand

Merge prim spec from src layer to dst layer and remove it from src layer.

Methods

__init__(dst_layer_identifier, ...[, ...])

Constructor.

do_impl()

Abstract do function to be implemented.

undo_impl()

Abstract undo function to be implemented.

__init__(
dst_layer_identifier: str,
src_layer_identifier: str,
prim_spec_path: str,
dst_stronger_than_src: bool,
usd_context: str | UsdContext = '',
)#

Constructor.

Keyword Arguments:
  • dst_layer_identifier (str) – The identifier of target layer.

  • src_layer_identifier (str) – The identifier of source layer.

  • prim_spec_path (str) – The prim spec path to be merged.

  • dst_stronger_than_src (bool) – Target layer is stronger than source layer in stage.

  • 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.