getLightAttr#
Fully qualified name: usdex::core::getLightAttr
- pxr::UsdAttribute usdex::core::getLightAttr(
- const pxr::UsdAttribute &defaultAttr,
Get the “correct” light attribute for a light that could have any combination of authored old and new UsdLux schema attributes.
The new attribute names have “inputs:” prepended to the names to make them connectable.
Light has only “intensity” authored - return “intensity” attribute
Light has only “inputs:intensity” authored - return “inputs:intensity” attribute
Light has both “inputs:intensity” and “intensity” authored - return “inputs:intensity”
See Light Prims for more details.
- Parameters:
defaultAttr – The attribute to read from the light schema: eg.
UsdLuxRectLight::GetHeightAttr()
- Returns:
The attribute from which the light value should be read