Is there any material node that returns the color on the XY coordinates below the pivot point?

Hi everyone,

I’m a newbie to UE, sorry in advance if this is a silly question.
For a cinematic, I’m trying to use the Foliage tool to paint some meshes on another mesh (referred below as “target mesh”).

I would like to blend the color of the painted meshes with the color of the target mesh, on the coordinates where the instance is painted.
For example, if in the coordinates of the spot where I’m painting the target mesh texture is blue, I would like that the painted instance to be blueish.

For this I would need to determine, in the painted meshes material, the color of the target mesh. But I have no idea how can I reference in the material of one mesh the material of another mesh.

Is there any way to do this? I’ve searched high and low but couldn’t find anything.
Thanks!