LockSpecsCommand#
- class omni.kit.usd.layers.LockSpecsCommand(
- spec_paths: str | List[str],
- hierarchy=False,
- usd_context: str | UsdContext = '',
Bases:
AbstractLayerCommandLocks spec paths in the UsdContext.
Methods
__init__(spec_paths[, hierarchy, usd_context])Constructor.
do()undo()- __init__(
- spec_paths: 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 locked.
hierarchy (bool) – Locking descendant specs or not.
usd_context (Union[str, omni.usd.UsdContext]) – Usd context name or instance. It uses default context if it’s empty.