CreateAudioPrimFromAssetPathCommand
- class omni.usd.commands.CreateAudioPrimFromAssetPathCommand(usd_context: UsdContext, path_to: Path, asset_path: str, select_prim: bool = True)
Bases:
CreatePrimCommandBase
Create reference undoable Command.
It creates a new Audio prim.
- Parameters
usd_context (omni.usd.UsdContext) – UsdContext this command to run on.
path_to (Sdf.Path) – Path to create a new prim.
asset_path (str) – The asset it’s necessary to add to references.
select_prim (bool) – = True, Whether to select the newly created UsdPrim or not.
Methods
__init__
(usd_context, path_to, asset_path[, ...])do
()- __init__(usd_context: UsdContext, path_to: Path, asset_path: str, select_prim: bool = True)