Activity › Forums › Adobe After Effects Expressions › Creating ITunes Cover Flow
-
Creating ITunes Cover Flow
Posted by Alex Dinnin on March 9, 2007 at 12:56 pmHappy Friday everyone..
If you have ITunes please go to the main view and click on the last of the three buttons next to search. You should see album covers. The one in the middle is flat and straight on. the ones on the left are rotated by 90 degrees and stacked off to the left and the ones on the right are rotated -90 degrees and stacked of to the right.
I was wondering if I could create a null with a slider that moves these albums along and rotates them when they get to a certain point. I imagine this would involve some if > then > else expressions.. but I am a bit confused.. so a few pointers would be greatly appreciated.. I will post what I have when I work out how to do it.
thanks in advance
Alex
Dan Ebberts replied 12 years, 4 months ago 18 Members · 25 Replies -
25 Replies
-
Mylenium
March 9, 2007 at 7:54 pmNope, absolutely no conditional stuff required. You only measure the distance between places and then use this to drive rotation. Example:
range=100; //range when rotation begins
center=thisComp.width*0.5; //center of comp on X axis
distance=position[0]-center;angle=linear(center+distance;center+range,center-range,90,-90);
[angle]
Mylenium
-
Alex Dinnin
March 12, 2007 at 2:55 pmCheers Mylene..
I’m trying to do this and three other jobs.. but that works great.
i.e. just in case people didn’t spot it..
angle=linear(center+distance;center+range,center-range,90,-90);
the semi collon needs to be a comma
-
Alex Dinnin
March 12, 2007 at 3:45 pmok..That works like a charm.. I have appied it to the y rotation.. tweaked it a little bit to suit my needs.. and its great..
however I now want to add that expression to position and scale.. except I can’t work out how to get it to ignore aspects..
for example.. I wanna now move it forward it Z, when it gets to the centre of the comp.. however I can’t work out how to get it to ignore x & y. And no matter what my feeble brain works out.. its always says.. needs to be in dimensions of 3 not 1 !!!
any ideas ??
Alex
-
Dankelly
March 12, 2007 at 5:29 pmThis should help!
range=200; //range when Z begins
center=thisComp.width*0.5; //center of comp on X axis
distance=position[0]-center;
Zdist=400;if (value[0] <= center ){ Zpos=linear(center+distance,center-range,center,value[2],value[2]-Zdist); }else{ Zpos=linear(center+distance,center,center+range,value[2]-Zdist,value[2]); } value+[0,0,Zpos] -DanKelly
-
Alex Dinnin
March 13, 2007 at 1:45 pmok that works like a charm.. however I had the x axis controlled by a slider on a seperate layer.
so i tried to tweak it…
range=200; //range when Z begins
center=thisComp.width*0.5; //center of comp on X axis
distance=position[0]-center;
Zdist=400;
x=thisComp.layer(“Null 1”).effect(“Scale”)(“Slider”) ;if (value[0] <= center ){ Zpos=linear(center+distance,center-range,center,value[2],value[2]-Zdist); }else{ Zpos=linear(center+distance,center,center+range,value[2]-Zdist,value[2]); } value+[x,0,Zpos] but this has now just stopped the translation iz Z ???? I'm positive I have put the x in the wrong place..
-
Dankelly
March 13, 2007 at 6:42 pmtry this::
x=thisComp.layer(“Null 1”).effect(“Scale”)(“Slider”);
range=200; //range when Z begins
center=thisComp.width*0.5; //center of comp on X axis
distance=x-center;
Zdist=400;if (x <= center ){ Zpos=linear(center+distance,center-range,center,value[2],value[2]-Zdist); }else{ Zpos=linear(center+distance,center,center+range,value[2]-Zdist,value[2]); } [x,value[1],Zpos]
-
Alex Dinnin
March 14, 2007 at 10:53 amJust a quick thankyou to Mylenium and DanKelly for helping me out on this..
I have uploaded the scene, should anyone be interested or want to use it.
https://www.adinnin.com/clients/ItunesBrowser/itunes_browser.aep
I hope that link works.
Alex
-
Steadifish
July 18, 2007 at 8:54 pmI’m completely uncomfortable with Java and Expressions, but would really like to know a line of script to get each “album cover” to freeze when centered in the frame. Ideally freeze-zoom forward 10%-then go back to the motion path. Expressions geniususes please help.
David Fisher
Planet Productions -
Dan Lacloche
August 16, 2007 at 3:14 amI only have AE 6.5 so I can’t open your .aep file. Where do I place the code? What layers do I set up?
Reply to this Discussion! Login or Sign Up