RemovePrimSpecCommand#

class omni.kit.usd.layers.RemovePrimSpecCommand(
layer_identifier: str,
prim_spec_path: Path | List[Path],
usd_context: str | UsdContext = '',
)#

Bases: Command

Removes prim spec from a layer.

Methods

__init__(layer_identifier, prim_spec_path[, ...])

Constructor.

do()

undo()

__init__(
layer_identifier: str,
prim_spec_path: Path | List[Path],
usd_context: str | UsdContext = '',
)#

Constructor.

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

  • prim_spec_path (Union[Sdf.Path, List[Sdf.Path]]) – The prim paths to be removed.

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