LockLayerCommand#
- class omni.kit.usd.layers.LockLayerCommand(
- layer_identifier: str,
- locked: bool,
- usd_context: str | UsdContext = '',
- Bases: - AbstractLayerCommand- Sets lock state for layer. - Methods - __init__(layer_identifier, locked[, usd_context])- Constructor. - do_impl()- Abstract do function to be implemented. - Abstract undo function to be implemented. - __init__(
- layer_identifier: str,
- locked: bool,
- usd_context: str | UsdContext = '',
- Constructor. REMINDER: Locking root layer is not permitted. - Keyword Arguments:
- layer_identifier (str) – The identifier of layer to be muted/unmuted. 
- locked (bool) – Muted or not of this layer. 
- 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.