add_usd_source_asset_path_to_mtl_lib
- omni.kit.material.library.add_usd_source_asset_path_to_mtl_lib(source_asset_path: str, source_asset_subid: str, group_name: str, submenu_name: Optional[str] = None, display_name: Optional[str] = None)
Adds a material to the context menu.
- Parameters
source_asset_path (str) – The USD Identifier corresponding to the source asset path of a USD Shader Node.
source_asset_subid (str) – The USD Sub-identifier corresponding to the source asset sub-identifier of a USD Shader Node.
group_name (str) – The menu entries are grouped. Select an existing one or creates a new group.
submenu_name (str) – Entries can be sorted into a submenu. If not set, the entry will appear top-level.
display_name (str) – Display name of the entry in the menu. If not set, a default value will be used.
- Returns
True on success otherwise False.
- Return type
(bool)