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

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

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…:

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? :slight_smile:

Be interested to hear the answer :smiley:

the answer is to take a look at this thread from Chris Murphy 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.

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…