ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

OSX Dock Magnification modified

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Michael LappOSX Dock Magnification modified
by on Mar 13, 2013 at 3:31:06 pm


I've browsed around the forum to achieve the look of the Mac OSX magnified look and found this expression by Colin Braley. Unfortunately, when I click his name to ask this question directly, it no longer finds him as a user here on Creative Cow.

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);
val = ease(dis, beginDistance, endDistance, endScale, beginScale);
[val, val]

This works great, but one thing I haven't been able to find is if there is a way to push the other layers aside while the hovered layer scales (keeping the gap between each layer) rather than scaling over top. I'm trying to achieve this without the tedious key framing process. If anyone knows of anything that I can add to this expression to achieve this, that would be a great help! Thanks so much in advance!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved