Last active
January 12, 2025 20:51
-
-
Save Sphiment/17bb75808f83c436dd6431b17112a1fe to your computer and use it in GitHub Desktop.
Bend anchor point to the bottom of the layer - after effects expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rect = thisLayer.sourceRectAtTime(); | |
if (thisLayer.text || thisLayer.content) { | |
[toComp([rect.left + rect.width / 2, rect.top])[0], toComp([rect.left + rect.width / 2, rect.top + rect.height])[1]]; | |
} else { | |
[anchorPoint[0],anchorPoint[1] + rect.height/2 ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment