UnlinkSpecsCommand#
- class omni.kit.usd.layers.UnlinkSpecsCommand(
- spec_paths: str | List[str],
- layer_identifiers: str | List[str],
- hierarchy=False,
- usd_context: str | UsdContext = '',
Bases:
AbstractLayerCommandUnlinks spec paths to layers.
Methods
__init__(spec_paths, layer_identifiers[, ...])Constructor.
do()undo()- __init__(
- spec_paths: str | List[str],
- layer_identifiers: str | List[str],
- hierarchy=False,
- usd_context: str | UsdContext = '',
Constructor.
- Keyword Arguments:
spec_paths (Union[str, List[str]]) – List of spec paths or single spec path to be unlinked.
layer_identifiers (Union[str, List[str]]) – List of layer identifiers or single layer identifier.
hierarchy (bool) – Unlinking descendant specs or not.
usd_context (Union[str, omni.usd.UsdContext]) – Usd context name or instance. It uses default context if it’s empty.