Mtches the shape of a curve to a spline ramp parameter. Make a line, add a resample SOP for more points, activate curveu attribute.
// Match curve to spline ramp
// Input is a line
// Resample SOP on line for more points
// Activate curveu attrib in resample SOP
// Remap curveu to shape of bend
@curveu = chramp("ramp",@curveu);
float bamt = chf("bend_amt"); //bend amount
vector benddir = chv("bend_dir"); //bend direction
@P += benddir * bamt * @curveu;