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)

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()

undo()

__init__(usd_context: UsdContext, path_to: Path, asset_path: str, select_prim: bool = True)