-
Converting one layer’s rotation to another’s Y value
I’m trying to use a range mapper to convert Layer A’s Z Rotation (0-45°) to Layer B’s Y Position (+/- 100 pixels). Both are 3D layers.
I think I have the basic concept correct? But I’m getting a class number error in last line of this:
input = thisComp.layer("Layer A").transform.zRotation;
inputLow = 0;
inputHigh = 45;
outputLow = -100;
outputHigh = 100;
m = linear(input,inputLow,inputHigh,outputLow,outputHigh);
[value[0], value + m[1], value[2]]