Prior to WWDC, @dhruvgovil presented a new recommended way to assign the P3 or another color space to either a file asset or a color input :
color3f inputs:diffuseColor = (0.2, 0.6, 0.85) (
colorSpace = "xxxxx"
)
With usd-core 24.08 I still find no function to set or get this value.
Was this eventually postponed to wait for a better nanoColor founded solution?
nporcino
(Nick Porcino)
August 8, 2024, 6:43pm
2
Hi Thomas,
Please have a look at the documentation linked from Universal Scene Description: Color ~ this is new, in 24.08.
and also see the enumerations in Universal Scene Description: pxr/base/gf/colorSpace.h Source File That enumeration matches the names in MaterialX, but will ultimately match the recommendations of the CIF, when that’s formally published.
See also Universal Scene Description: UsdAttribute Class Reference
You cannot set a color space on a usd layer at the moment. The color space you specify on a stage refers to a display configuration, it does not refer to an input configuration.
Does that answer your question?
Thank you very much @nporcino