How to project/imprint a texture using a mesh as its source I have been trying for days now to make a texture from a mesh pattern (Image B).

The ideal result would be to end with a texture (using the UVs from the Mesh A) with the pattern imprinted/baked/projected on to it from Mesh B

A - Mesh to texture:


B - Mesh pattern to use as texturing template


C - Desired result, Mesh A with Mesh B as texture


Any help would be greatly appreciated, thanks in advance.
You can bake this. Give the texture mesh an emission material. Select the object, then the target object (SHIFT). 



In an image editor create a new texture (square, left)
Add an image texture node to the material of the target object,
select your new texture. It does not have to be connected to
anything, but make sure it's active (clicked on)
In the render settings tab, copy my settings.
Press Bake.