Last active
June 29, 2020 17:14
-
-
Save animoplex/2e0f029a3c6ec9e4f552a5eaaf5a93b5 to your computer and use it in GitHub Desktop.
Dynamic Box - After Effects Expression by Animoplex
This file contains hidden or 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
// Dynamic Box - Created by Animoplex: www.animoplex.com | |
// Apply this to the Size property of a shape layer to resize the box based on the source. | |
// Full Tutorial: https://www.youtube.com/watch?v=BOPfs49VfLE&t=803s | |
pad = 80; // pixel padding around box | |
src = thisComp.layer("Label"); | |
box = src.sourceRectAtTime(time - src.inPoint); | |
[box.width + pad, box.height + pad] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment