You can fit-range an attribute with setdetailattrib() set to "min" and "max".
1st pointwrangle:
setdetailattrib(0, 'height_min', @height, "min");
setdetailattrib(0, 'height_max', @height, "max");
2nd pointwrangle:
float min = detail(0, "height_min", 0);
float max = detail(0, "height_max", 0);
@Cd.g = fit(@height, min, max, 0.0, 1.0);
fit_range_VEX.hiplc