# How to add a colorSpace specifically to a color input, like supported by RealityKit

**URL:** <https://forum.aousd.org/t/how-to-add-a-colorspace-specifically-to-a-color-input-like-supported-by-realitykit/1756>\
**Category:** USD\
**Created:** [August 8, 2024, 4:19pm UTC](https://forum.aousd.org/t/how-to-add-a-colorspace-specifically-to-a-color-input-like-supported-by-realitykit/1756 "2024-08-08T16:19:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasKumlehn](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@ThomasKumlehn](https://forum.aousd.org/u/ThomasKumlehn)\
**Post date:** [August 8, 2024, 4:19pm UTC](https://forum.aousd.org/t/how-to-add-a-colorspace-specifically-to-a-color-input-like-supported-by-realitykit/1756/1 "2024-08-08T16:19:34Z")

</div>

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 :

```usd
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?

---

<div class="post-metadata">

**Author:** ![nporcino](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nporcino](https://forum.aousd.org/u/nporcino)\
**Post date:** [August 8, 2024, 6:43pm UTC](https://forum.aousd.org/t/how-to-add-a-colorspace-specifically-to-a-color-input-like-supported-by-realitykit/1756/2 "2024-08-08T18:43:20Z")

</div>

Hi Thomas,

Please have a look at the documentation linked from [Universal Scene Description: Color](https://openusd.org/release/api/group __group__ gf___color.html) ~ this is new, in 24.08.

and also see the enumerations in [Universal Scene Description: pxr/base/gf/colorSpace.h Source File](https://openusd.org/release/api/color_space_8h_source.html) 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](https://openusd.org/release/api/class_usd_attribute.html#ab7003182fc7e31d5ee5be80ee518edbe)

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?

---

<div class="post-metadata">

**Author:** ![ThomasKumlehn](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@ThomasKumlehn](https://forum.aousd.org/u/ThomasKumlehn)\
**Post date:** [August 9, 2024, 6:29am UTC](https://forum.aousd.org/t/how-to-add-a-colorspace-specifically-to-a-color-input-like-supported-by-realitykit/1756/3 "2024-08-09T06:29:02Z")

</div>

Thank you very much @nporcino
