# Don't suppose you guys have a color temperature to rgb maxscript function handy?

**URL:** <https://forums.chaos.com/t/dont-suppose-you-guys-have-a-color-temperature-to-rgb-maxscript-function-handy/93186>\
**Category:** Render Theory\
**Created:** [March 14, 2019, 5:37pm UTC](https://forums.chaos.com/t/dont-suppose-you-guys-have-a-color-temperature-to-rgb-maxscript-function-handy/93186 "2019-03-14T17:37:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [March 14, 2019, 5:37pm UTC](https://forums.chaos.com/t/dont-suppose-you-guys-have-a-color-temperature-to-rgb-maxscript-function-handy/93186/1 "2019-03-14T17:37:48Z")

</div>

Heya lovely chaos folks!

I’m doing a few max light editing tools to add some variation in to a load of similar lights and I’d like to add in color temperature as an option - don’t suppose you guys have a handy maxscript function to convert color temperatures into rgb so I can update a colour swatch?

Just as a note, the main reason I’m doing this is there’s no current way of using say a multisubtex or vray user color map in the texture slot of a vray light (or 3dsmax spot since sometimes we like those) - it’d be great to have object properties / multisubtex and obj id / world space procedural support in lights!

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [March 14, 2019, 10:01pm UTC](https://forums.chaos.com/t/dont-suppose-you-guys-have-a-color-temperature-to-rgb-maxscript-function-handy/93186/2 "2019-03-14T22:01:30Z")

</div>

Ignore, I can happily make a temp VrayColor map and piggy back on your maxscript properties to convert!

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [March 15, 2019, 3:56am UTC](https://forums.chaos.com/t/dont-suppose-you-guys-have-a-color-temperature-to-rgb-maxscript-function-handy/93186/3 "2019-03-15T03:56:33Z")

</div>

isn’t that map a little gem? ^^

---

<div class="post-metadata">

**Author:** ![joconnell](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joconnell/32/36063_2.png) [@joconnell](https://forums.chaos.com/u/joconnell)\
**Post date:** [March 15, 2019, 5:17pm UTC](https://forums.chaos.com/t/dont-suppose-you-guys-have-a-color-temperature-to-rgb-maxscript-function-handy/93186/4 "2019-03-15T17:17:41Z")

</div>

It very much is. I’m hoping for more support for vray user color and other such properties - I’d love to have a user color that a light can read and have that pulled from point data in a scatterer 😄
