CreateMtlxMaterialPrimCommand#
- class omni.usd.commands.CreateMtlxMaterialPrimCommand(
 - mtlx_url: str,
 - base_path: str,
 - select_new_prim: bool = False,
 - stage: Stage | None = None,
 - context_name: str | None = None,
 Bases:
Command,UsdStageHelperCreate a MaterialX material.
Methods
__init__(mtlx_url, base_path[, ...])Constructor.
do()undo()- __init__(
 - mtlx_url: str,
 - base_path: str,
 - select_new_prim: bool = False,
 - stage: Stage | None = None,
 - context_name: str | None = None,
 Constructor.
- Parameters:
 mtlx_url (str) – Material file path.
base_path (str) – Target prim path to create the material under.
select_new_prim (bool, optional) – If to select new created prim. Default is False.
stage (Usd.Stage, optional) – Stage to operate. Default is None, which means the stage in the default UsdContext is used.
context_name (str, optional) – The usd context to operate. Default is None, which means the default UsdContext is used.