omni.kit.material.library Functions
Functions Summary:
Adds callback to material cache changed list. |
|
Add custom material, this will also get added to context menu Create menu. |
|
Add callback to trigger when material library UI refreshes. |
|
Add filter callback function to get_materials_from_stage_async() callback. |
|
Add custom folder to list of folders to generate context menu “Create/Materials” from. |
|
Adds a material to the context menu. |
|
Show dialog to user, so they an select material and bind to prims. |
|
Bind material to selected prims. |
|
Deprecated & not used. Build simulated combobox in conjunction with MaterialListBoxWidget. |
|
Create material prim from .mdl file. |
|
Create materialX prim from .mdl file. |
|
Show custom material dialog. |
|
Async refresh material_list. |
|
Destroy material_utils. This should only be called from omni.kit.material.library on_shutdown. |
|
Build bind material menu UI. |
|
Get MaterialLibraryExtension instance. |
|
Get material Enum data. |
|
Gets material thumbnail image path for prim. |
|
Gets list of hidden materials, which is /exts/omni.kit.material.library/ui_hidden_list. |
|
Builds a list of materials and other information, used by omni.kit.context_menu and omni.kit.menu.create |
|
Make valid material prim path from material_prim_name. |
|
Get list of materials for stage. NOTE: This function can block on large stages. |
|
Get list of materials for stage asynchronously. |
|
Get material library paths. Which is “/exts/omni.kit.material.library/lib_paths” |
|
Gets list of materials asynchronously. Can return [] if mdl_list_cache is not complete yet. |
|
Gets list of materials asynchronously. Can wait if mdl_list_cache is not complete yet. |
|
Get material source asset file, from “/exts/omni.kit.material.library/usd_source_asset_list”. |
|
Get all child prims from prim_path. |
|
get sub-identifier list from material prim asynchronously. |
|
get sub-identifier list from mdl file asynchronously. |
|
Initialize material_utils. This should only be called from omni.kit.material.library on_startup. |
|
Remove custom material, this will also get removed from context menu Create menu. |
|
Show multi descendants dialog. |
|
Remove callback to material cache changed list. |
|
Remove custom folder to list of folders to generate context menu “Create/Materials” from. |
|
Remove custom material, this will also get removed from context menu Create menu. |
|
Remove callback to trigger when material library UI refreshes. |
|
Remove filter callback function from get_materials_from_stage_async() callback. |
|
Remove material from cache. Call by Material Watcher when re-loading modified mdl files. |
|
Removes a material from the context menu. |