get_sdr_shader_property_default_value
- omni.kit.property.material.scripts.widgets.usdshade.utils.get_sdr_shader_property_default_value(sdr_shader_property: ShaderProperty, metadata: dict) Optional[Any]
Returns the default value for a given SDR shader property considering the metadata.
- Parameters
sdr_shader_property (
Sdr.ShaderProperty
) – The shader property for which the default value is being queried.metadata (dict) – The metadata dictionary that may contain additional information to determine the default value.
- Returns
The default value of the shader property, or None if no default can be determined.
- Return type
Union[Any, None]