ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression to use markers to control opacity

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Niklas Lange
Expression to use markers to control opacity
on Dec 1, 2019 at 10:20:09 pm
Last Edited By Niklas Lange on Dec 1, 2019 at 11:04:35 pm

Hello,

I am not that familiar with AE expressions, so excuse the (probably) basic question.

I have two layers, layer 1 with a mask on it, layer 2 with markers on it.
How can I set the opacity of the mask on layer 1 to 0% (100% otherwise), for all frames for which layer 2 has markers?

Thanks,

Luca

Edit: Reposted in AE expressions forum, sorry!


Return to posts index

Graham Quince
Re: Expression to use markers to control opacity
on Dec 8, 2019 at 11:36:49 am

Try something like this, from Dan Ebberts:

L = thisComp.layer("Control");
if ((L.marker.numKeys > 0) && (numKeys > 2) && (time > key(2).time)){
t2 = key(2).time;
t3 = key(3).time;
tm = L.marker.key(1).time;
t = linear(time,t2,tm,t2,t3);
valueAtTime(t);
}else
value

https://forums.creativecow.net/docs/forums/post.php?forumid=227&postid=3712...

http://www.YouTube.com/ShiveringCactus - Free FX for amateur films
http://shiveringcactus.wordpress.com/ - FX blog


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]