Last active
March 13, 2017 16:58
-
-
Save dedosmedia/da3e6dad5364a10068100d2bffce5341 to your computer and use it in GitHub Desktop.
Redimensionar imagen al tamaño de la composicion en AfterEffects
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
// En una composicin llamada "//composition" y una capa llamada "//resize" | |
var w = thisComp.width; | |
var h = thisComp.height; | |
var sx = w*100/thisLayer.width; | |
var sy = h*100/thisLayer.height; | |
[sx,sy] | |
//En la imagen que queremos redimensionar en Transformar->escala, agregamos la siguiente expresión: | |
eval(comp("//Controller").layer("//resize").text.sourceText.toString()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment