CreateMtlxMaterialPrimCommand

class omni.usd.commands.CreateMtlxMaterialPrimCommand(mtlx_url: str, base_path: str, select_new_prim: bool = False, stage: Optional[Stage] = None, context_name: Optional[str] = None)

Bases: Command, UsdStageHelper

Create MaterialX Material undoable Command.

Parameters
  • mtlx_url (str) –

  • base_path (str) –

  • select_new_prim (bool) –

  • stage (Usd.Stage) – Stage to operate. Optional.

  • context_name (str) – The usd context to operate. Optional.

Methods

__init__(mtlx_url, base_path[, ...])

do()

undo()

__init__(mtlx_url: str, base_path: str, select_new_prim: bool = False, stage: Optional[Stage] = None, context_name: Optional[str] = None)