-
iTunes Coverflow Expression and x-position easing
Hi there,
I am blatanly new to After Effects expressions and scripting in general, and I’ve got a really tricky issue for me.
I downloaded the great expression provided by “dinner” here:https://forums.creativecow.net/readpost/227/7142
It all worked fine after translating the “Slider Control”- and “Slider”-terms to the correct german translation… what a nonsense, by the way.
Basically, the xPos of a solid is controlled by a slider in an upper comp, and here is the expression:—
x=comp(“REFLECT_COMP”).layer(“Null 1”).effect(“Slider Control”)(“Slider”);
range=300; //range when Z begins
center=thisComp.width*0.5; //center of comp on X axis
distance=x-center;
Zdist=400;if (x <= center ){ Zpos=ease(center+distance,center-range,center,value[2],value[2]-Zdist); }else{ Zpos=ease(center+distance,center,center+range,value[2]-Zdist,value[2]); } [x,value[1],Zpos]
—This is okay, but not perfect.
What I plan to achive is something like this:
You can see that the solids are close together at the outwards, and the solid in the middle stands quite alone.
I guess I have to add some formula to the first line of the expression, perhaps based on the “center”-tag or whatever.
But I don’t have any clue how to solve this non-linear x-positioning.
Can anybody help me out?Thank you very much and please ignore my poor English. 🙂
Cheers, zeiti