Activity › Forums › Adobe After Effects Expressions › Apple Doc “magnify” expression?
-
Apple Doc “magnify” expression?
Posted by Aptjel on December 7, 2005 at 1:57 pmHi,
another way to see it is a magnify expression,thanks
apt
Elaan Dak replied 14 years, 10 months ago 3 Members · 3 Replies -
3 Replies
-
Colin Braley
December 7, 2005 at 5:09 pmI don’t have AE infront of me right now but I think I can give you an expression what will work. Apply this to the scale of the layer you want to change. Pick whip the mouse_layer variable to whatever layer you want to use.
//Begin expression
mouse_layer = thisComp.layer(“mouse layer”);//Mouse layer
beginScale = 100;//Scale begins at this
endScale = 250;//Scale ends at this
beginDistance = 200;//Distance to begin magnifying in pixels
endDistance = 0;//Distance to end magnifying in pixels
//–Don’t modify below here
dis = length(this.position, mouse_layer.position);
ease(dis, beginDistance, endDistance, beginScale, endScale)//end expression
I think what should do the magnifying part of the apple dock animation.
~Colin
-
Elaan Dak
June 27, 2011 at 10:49 amIs it possible to change the scale method to a Z-axis position, I mean, instead of scaling the layers, I want to move them forward and backward in Z-axis when the mouse layer moves.
Thanks in advance..
Reply to this Discussion! Login or Sign Up