-
Optics Compensation position expression…
I’m trying to create something like a magnifying glass. I’ve built a comp as a loupe that has an adjustment layer with Optics Compensation on it. I have it’s view center position quick whipped to the position of the loupe in the main comp. Under the loupe comp, I have the bit I want enlarged as an Alpha mask to something the same size as my loupe comp, which is set as a child. Basically, it makes my text look bulged and enlarged when I move the loupe comp position around.
The problem comes in when I make multiple keyframes in the loupe position. The first one is fine, but when I make a second keyframe, the Optics Compensation view center stays with the first keyframe, so the image starts to become very distorted as it gets toward the edge of the sphere.
I’m not exactly sure why this happens or how to fix it, as I’m not too familiar with After Effects, let alone expressions. The expressions attached are on the Optics Compensation view center. Thanks for any help!
Cheers,
Bryan[comp("Comp 1").layer("bryan loupe").transform.position[0]+(comp("Comp 1").layer("bryan loupe").transform.position[0]/2), comp("Comp 1").layer("bryan loupe").transform.position[1]+(comp("Comp 1").layer("bryan loupe").transform.position[1]/2)]