Reparametrize UV coordinates to make sub surface division equal on surfaces of different lengths

I’m building a grasshopper script for a metal panel system. Each row of panels has a different spacing in the v direction. I am having trouble keeping panel widths in the v direction consistent on walls of different lengths. I need a way to reparametrize the V values when using the subsrf component to create the panels.

Metal Panel.3dm (2.0 MB) Exterior Design - Metal Panels - Parallel and offset.gh (15.6 KB)