CreateLayerReferenceCommand#
- class omni.kit.usd.layers.CreateLayerReferenceCommand(
- layer_identifier: str,
- path_to: Path,
- asset_path: str = None,
- prim_path: Path = None,
- usd_context: str | UsdContext = '',
- Bases: - AbstractLayerCommand- Create reference in specific layer. - It creates a new prim and adds the asset and path as references in specific layer. - Parameters:
- layer_identifier – str: Layer identifier to create prim inside. 
- path_to (Sdf.Path) – Path to create a new prim. 
- asset_path (str) – The asset it’s necessary to add to references. 
- prim_path (Sdf.Path) – The prim in asset to reference. 
- usd_context (Union[str, omni.usd.UsdContext]) – Usd context name or instance. It uses default context if it’s empty. 
 
 - Methods - __init__(layer_identifier, path_to[, ...])- do_impl()- Abstract do function to be implemented. - Abstract undo function to be implemented. - __init__(
- layer_identifier: str,
- path_to: Path,
- asset_path: str = None,
- prim_path: Path = None,
- usd_context: str | UsdContext = '',
 - do_impl()#
- Abstract do function to be implemented. 
 - undo_impl()#
- Abstract undo function to be implemented.