-
strange linear
Hi ! 🙂
Here’s something my brain can’t understand. For what I had understood, the linear function allows us to replace a range of values by another. Right ?
Here’s the case.
Here are two lines rotating from the center of a circle. Visually, they are similar : their position, their rotation are visually similar, they appear at the same place, the same angle.
But their movements are not built the same way :
– The line A’s movement is controlled by a slider, ranging from 0 to 800.
– The line B’s movement is controlled by its rotation parameter, ranging from 0 to -360.I want these 2 ranges to be replaced by a range from 90 to -270.
I think : “Yeah, no matter what my values are, the linear function is going to give me the same result.”
I thought.– For the line A, I wrote :
linear(thisComp.layer(“scanner”).effect(“Parameter”)(“Cursor”),0,800,90,-270)
– For the line B, I wrote :
linear(comp(“Aiguille PC”).layer(“Aiguille”).transform.rotation,0,-360,90,-270)And here are the values they give :
– Time1 : A= -30 ; B= -150
– Time2 : A= -270 ; B= 0
– Time3 : A= -193,2 ; B= 13,2!!!HOW is this possible ???!!!
Why doesn’t the linear functions return the same values ??
And I guess there is a link between the returned values, but I can’t figure it out.Do you understand what’s happening ?
Thanks for your help !