CreateAudioPrimFromAssetPathCommand
- class omni.usd.commands.CreateAudioPrimFromAssetPathCommand(usd_context: UsdContext, path_to: Path, asset_path: str, select_prim: bool = True)
Bases:
CreatePrimCommandBase
Create a new Audio primitive from asset path.
Methods
__init__
(usd_context, path_to, asset_path[, ...])Constructor.
do
()- __init__(usd_context: UsdContext, path_to: Path, asset_path: str, select_prim: bool = True)
Constructor.
- 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 path of the audio file.
select_prim (bool, optional) – If to select the newly created UsdPrim or not. Defaults to True.