omni.kit.property.material.scripts.widgets.usdshade.utils Functions

Functions Summary:

create_nonpersistant_attribute

Creates a non-persistent attribute for the given material paths with the specified name, type, and value.

deep_dict_update

Recursively updates a dictionary by merging a second dictionary into it.

get_display_group_for_render_context

Create a pretty display group name for the named render context

get_info_ids_for_prim

Returns a list of allowed tokens for the info:id property of a shader.

get_mdl_subidentifiers_for_prim

Retrieves the list of MDL subidentifiers associated with a given USD primitive (prim) if any exist. MDL subidentifiers are unique identifiers used to reference sub-components or variants within an MDL asset.

get_sdr_shader_node_for_prim

Finds and returns the Sdr.ShaderNode used to define the corresponding UsdShade.Shader prim.

get_sdr_shader_property_default_value

Returns the default value for a given SDR shader property considering the metadata.

get_shader_info

Gets the shader information for a given UsdShade.Shader.

property_name_to_display_name

Converts a property name to a display name by splitting camel casing.

remove_properties_and_connections

Remove properties and connections from a given USD Prim that are no longer valid.