CreatePrimCommandBase#
- class omni.usd.commands.CreatePrimCommandBase(
- usd_context: UsdContext,
- path_to: Path,
- asset_path: str,
- select_prim: bool = True,
Bases:
Command
Base class to create a prim (and remove when undo).
Methods
__init__
(usd_context, path_to, asset_path[, ...])Constructor.
do
()undo
()- __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 it’s necessary to add to references.
select_prim (bool, optional) – If to select the newly created UsdPrim. Defaults to True.