LinkSpecsCommand
- class omni.kit.usd.layers.LinkSpecsCommand(spec_paths: Union[str, List[str]], layer_identifiers: Union[str, List[str]], additive: bool = True, hierarchy: bool = False, usd_context: Union[str, UsdContext] = '')
Bases:
AbstractLayerCommand
Links spec paths to layers.
Methods
__init__
(spec_paths, layer_identifiers[, ...])Constructor.
do
()undo
()- __init__(spec_paths: Union[str, List[str]], layer_identifiers: Union[str, List[str]], additive: bool = True, hierarchy: bool = False, usd_context: Union[str, UsdContext] = '')
Constructor.
- Keyword Arguments
spec_paths (Union[str, List[str]]) – List of spec paths or single spec path to be linked.
layer_identifiers (Union[str, List[str]]) – List of layer identifiers or single layer identifier.
additive (bool) – Clearing exsiting links or not.
hierarchy (bool) – Linking descendant specs or not.
usd_context (Union[str, omni.usd.UsdContext]) – Usd context name or instance. It uses default context if it’s empty.