Now I'm trying to do the same for orientation. A bit trickier. This is as far as I got, but the output values are definitely not scaled versions of the original values with this. It jumps by much bigger chunks and flips the camera around the axis when this is applied to orientation keyframes. Any idea what I'm doing wrong?
p=transform.orientation;
x=p[0];y=p[1];z=p[2];
minx=-360;miny=-360;minz=-360;
slider=thisComp.layer("CAM CONTROL").effect("CAMERA SHAKE")("Slider");
x=linear(slider,-360,360,minx,x);
y=linear(slider,-360,360,miny,y);
z=linear(slider,-360,360,minz,z);
[x,y,z]