The texture token <shapename> provides a direct connection between the name of the mesh and the texture name, replacing the name of the 'shape' at render time.

Workflow