Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Arslan-TR/cb5f906366b4d7780eb29c587e610e98 to your computer and use it in GitHub Desktop.
Save Arslan-TR/cb5f906366b4d7780eb29c587e610e98 to your computer and use it in GitHub Desktop.
scale & opacity with 2 in-out referance point - AE Expression
//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