get_shader_info
- omni.kit.property.material.scripts.widgets.usdshade.utils.get_shader_info(usdshade_shader: Shader) Tuple[str, Optional[str], Optional[str]]
Gets the shader information for a given UsdShade.Shader.
- Parameters
usdshade_shader (
UsdShade.Shader
) – The shader to retrieve information from.- Returns
A tuple containing the shader’s implementation source as the first element, the shader ID as the second element (if implementation source is ‘id’), and the source asset sub-identifier as the third element (if implementation source is ‘sourceAsset’). If the shader ID or source asset sub-identifier is not available, their respective positions in the tuple will be None.
- Return type
Tuple[str, Optional[str], Optional[str]]