StitchPrimSpecsToLayer

class omni.kit.usd.layers.StitchPrimSpecsToLayer(prim_paths: List[str], target_layer_identifier: str, usd_context: Union[str, UsdContext] = '')

Bases: AbstractLayerCommand

Flatten specific prims in the stage. It will remove original prim specs after flatten.

Methods

__init__(prim_paths, target_layer_identifier)

Constructor.

do_impl()

Abstract do function to be implemented.

undo_impl()

Abstract undo function to be implemented.

__init__(prim_paths: List[str], target_layer_identifier: str, usd_context: Union[str, UsdContext] = '')

Constructor.

Keyword Arguments
  • prim_paths (List[str]) – A list of prim_paths to flatten with.

  • target_layer_identifier (str) – The target layer to store the flatten results.

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