CreatePreviewSurfaceMaterialPrimCommand#
- class omni.usd.commands.CreatePreviewSurfaceMaterialPrimCommand(
- mtl_path: str,
- shader_prim_name='Shader',
- select_new_prim: bool = False,
Bases:
Command
Create a USD Preview Surface Material.
Methods
__init__
(mtl_path[, shader_prim_name, ...])Constructor.
do
()undo
()- __init__(
- mtl_path: str,
- shader_prim_name='Shader',
- select_new_prim: bool = False,
Constructor.
- Parameters:
mtl_path (str) – The material path to create.
shader_prim_name (str, optional) – The name of the root shader prim. Default is “Shader”.
select_new_prim (bool, optional) – If to select new created prim. Default is False.