Last active
February 2, 2021 08:45
-
-
Save Arslan-TR/cb5f906366b4d7780eb29c587e610e98 to your computer and use it in GitHub Desktop.
scale & opacity with 2 in-out referance point - AE 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
//scale & opacity with 2 in-out position referance point - AE Expression | |
//add expression to objects scale (2 value): | |
[linear(thisComp.layer("Null 3").transform.xPosition //linear`s source | |
, thisComp.layer("Null 1").transform.xPosition //min Value of referance | |
, thisComp.layer("Null 2").transform.xPosition //max Value of referance | |
, 100, 0) //linear's output values | |
,value[1]]; //second dimension value | |
///////// | |
//USAGE: [linear(----------------linear`s source-------------,---------------min Value---------------------,--------------max Value----------------------, 100, 0), 2nd dimension] | |
[linear(thisComp.layer("Null 3").transform.xPosition, thisComp.layer("Null 1").transform.xPosition, thisComp.layer("Null 2").transform.xPosition, 100, 0), value[1] ] | |
//add expression to objects Opacity (1 value): | |
[linear(thisComp.layer("Null 3").transform.xPosition //linear`s source | |
, thisComp.layer("Null 1").transform.xPosition //min Value of referance | |
, thisComp.layer("Null 2").transform.xPosition //max Value of referance | |
, 100, 0); //linear's output values | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment