Creating custom Tex or uv attribute by combining floats

Hi, I’m trying to create procedural UVs or Tex coords for a skinned geometry in POPs.

The skinned object is lines copied onto a POPs trail with 50 samples. So I get 50 copied lines, which I then skin. It basically creates a sweep (a long, always deforming rectangle)

My intention is to manually UV this procedurally. The normalized point ID of the copied lines (_PointU) becomes my U coordinate and the normalized point ID of the trail becomes my V coordinate. I’ve assigned each of these to float attributes called TexCoordU and TexCoordV. This works really well in a lookuptex POP where I can assign the individual float attributes separately.

But for actually texturing, I need to get these two float attributes combined either into Tex (as a float3) or UV (as a float2). It seems like this should be an obvious thing to do. But I can’t seem to figure it out. The attcombine POP seems like the obvious one. Or perhaps mathcombine. But I’m not seeing the magic recipe.

Any help much appreciated!

Hi @kokosing,

in a Math Combine POP, you can choose the Operation “A”, set Scope A to “TexCoordU” and the Result Scope parameter to “Tex.x”. Now repeat for “TexCoordV” and “Tex.y” and this should work.

cheers
Markus

Perfect! Thanks!