-
Mask Path expression
I need an expression to turn a mask’s opacity = 100 if there’s a mask path keyframe, else the mask opacity = 0. I have some code background but this is my very first expression, so be gentle.
Can the presence of a keyframe be tested?
Thanks for any and all help!
Dan
Here’s the background
I’m doing roto with Mocha AE and bringing in the shape layers via “Paste Mocha Mask”. The in and out points of the shape layers get translated into AE masks as continuous mask shape keyframes, starting at the shape in point and ending at the shape outpoint. This means that all the masks are visible and that’s not very useful, so my idea is to knock out the opacity to recreate in and out points. If anyone is familiar with this workflow and thinks they have a better solution than writing an expression, I’d be much obliged.
if (mask("Mask 1").maskPath){mask("Mask 1").opacity = 100}else{mask("Mask 1").opacity = 0
}
