I have an example attached of what I'm looking to do.
problem is I start with a very simple polygon object which has only one vert span between its lengths. this uv maps well because i can use $PDIST in the poly wire UV options to make UV that runs the length of the wire.
However I'd like to resample the polygon object, and then deform it with mountain to get it to make a wobbly line once the polywire is applied. if I do this then $PDIST samples each sub segment of the line instead of taking in the larger picture of the entire length. this is as expected however its not what I want.
If I apply the mountian after the polywire then it changes the thickness of the wire in an undesireable way, it gets thicker and thinner in places where i want it to be consistent.
there are a couple ways to approach this problem, one I could maybe create a length attribute before the resample so that each segment knows where it should be organized within the UV map. or 2 find a way to deform the mesh post wire, so that it doesn't change the thickness of the wire, and I'm not sure how to do either.