Activity › Forums › Adobe After Effects › 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
Aptjel replied 20 years, 4 months ago 2 Members · 2 Replies -
2 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
Reply to this Discussion! Login or Sign Up