Scaling UV coordinates per instance

Hello!

When using geo instancing, how do I scale my uv coordinates per instance? Right now I have the choice of replacing and offsetting in the menu. Is there a way to access the instance id to reference my scale parameters either in the geo or a texture SOP? And if I need to write a shader to do this, how do I send in my instance specific uv scale uniform?

Thank you for any help with this!
Maria

I found a solution that I can share here for what it’s worth. I wrote a simple shader that scales the uv coordinates with values that are provided via the geo instance. The vertex shader does the work with this code:

texCoord = uv[0];
uvscale = TDInstanceTexCoord(uv[0]);
texCoord[0] *= uvscale[0];
texCoord[1] = (1-uvscale[1])+texCoord[1]*uvscale[1];
texCoord[2] = uvscale[2];

Hi.
Can you share the example?
Thank you.