```
float start = chf('start');
float touch = chf('touch');
float speed = chf('speed');
float flip = 1 - chf('flip');
vector fade = relbbox(0,@P);
float amp = chf("amp") * @Cd.x;
float fade_x = chramp("fade_x_ramp",fade.x);
float fade_z = chramp("fade_z_ramp",fade.z);
float fade_y = chramp("fade_y_ramp",fade.y);
matrix m = ident();
float copy=( ch("../copy1/nyc") - prim(0, 'copynum', @primnum)) * flip;
float t = @time * speed - start - copy + sin( fade_x *amp) + fade_z * (touch*fade_x);
rotate(m, smooth(0, $PI, t) * -$PI, {0,0,1});
@P *= m;
The work proceeded in the direction I wanted using the ramp parameters referring to the code in the hip file. I was able to complete the code with the advice of a senior at the company, and I will leave some of that code behind. And at the end I used a position mix. Thanks to everyone who responded.