# Can I get the RGB color of the material of a static mesh (or skel mesh) just having a X,Y,Z world location?

**URL:** <https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901>\
**Category:** Asset Creation\
**Tags:** color-picker, unreal-engine, question\
**Created:** [July 30, 2020, 11:02am UTC](https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901 "2020-07-30T11:02:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 30, 2020, 11:02am UTC](https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901/1 "2020-07-30T11:02:35Z")

</div>

Can I get the RGB color of the material of a static mesh (or skel mesh) just having a X,Y,Z world location?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 30, 2020, 12:24pm UTC](https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901/2 "2020-07-30T12:24:50Z")

</div>

It is possible, but I can never remember how to do it.

I did see it in one of this guy’s vids, no sorry, can’t recall which one…:

> **[tharlevfx](https://www.youtube.com/c/tharlevfx/videos)**
>
> I have over 10 years experience In the games industry and teach part time at Escape Studios in London - an Epic Unreal Authorised Training Centre.  
> 
> If there’s a topic you would like to see covered please don’t hesitate to email me...

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 31, 2020, 7:52am UTC](https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901/3 "2020-07-31T07:52:27Z")

</div>

Ok thanks, I checked in the videos but I got lost, so I wrote to the guy tharlevfx.  
Let’s see if we reach a solution? 🙂

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 31, 2020, 8:04am UTC](https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901/4 "2020-07-31T08:04:47Z")

</div>

Be interested to hear the answer 😃

---

<div class="post-metadata">

**Author:** ![VerumBit](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/verumbit/32/750218_2.png) [@VerumBit](https://forums.unrealengine.com/u/VerumBit)\
**Post date:** [July 31, 2020, 11:03am UTC](https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901/5 "2020-07-31T11:03:04Z")

</div>

the answer is to take a look at this thread from Chris Murphy [https://twitter.com/HighlySpammable/status/1228557821815357440](https://twitter.com/HighlySpammable/status/1228557821815357440)  
but I didn’f find what I’m trying to do.

In a few words I’d like to do the same thing you do with the COLOR PICKER when you need to assing a color to a constant3vector inside the material base color. You pick it from the 2d screen but I would like to pick it from a 3d xyz input.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 31, 2020, 12:42pm UTC](https://forums.unrealengine.com/t/can-i-get-the-rgb-color-of-the-material-of-a-static-mesh-or-skel-mesh-just-having-a-x-y-z-world-location/468901/6 "2020-07-31T12:42:30Z")

</div>

I do recall the VFX talking about it. I -think- it was something to do with cross product ( which given two vectors, gives you the vector perpendicular to both), but don’t quote me on that…
