Skip to content

Instantly share code, notes, and snippets.

@spencejs
Created November 10, 2017 21:35
Show Gist options
  • Save spencejs/d9e138a944896c4565190320693e6393 to your computer and use it in GitHub Desktop.
Save spencejs/d9e138a944896c4565190320693e6393 to your computer and use it in GitHub Desktop.
AE - Auto Fade In
transition = 20;
if (marker.numKeys<2){
tSecs = transition / ( 1 / thisComp.frameDuration);
linear(time, inPoint, inPoint + tSecs, 0, 100)
- linear(time, outPoint - tSecs, outPoint, 0, 100)
}else{
linear(time, inPoint, marker.key(1).time, 0, 100)
- linear(time, marker.key(2).time, outPoint, 0, 100)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment