-
Expression depending on 2 checkboxes or more
Good day everyone,
In AE, I synced 4 different versions of 1 short video (a white/alpha transition for the Track Matte Key effect), so when I import it into the Graphic Essential Panel, it would be possible in Premiere Pro to toggle on a hard-keyed version, a speed-up version and a combination.
The plan is to do it by the following scheme:
Hard-key: OFF
Speed 2x: OFF
= video 1 (soft-key, speed 1x) 100% opacity.
= video 2 (soft-key, speed 2x) 0% opacity.
= video 3 (hard-key, speed 1x) 0% opacity.
= video 4 (hard-key, speed 2x) 0% opacity.Hard-key: OFF
Speed 2x: ON
= video 1 (soft-key, speed 1x) 0% opacity.
= video 2 (soft-key, speed 2x) 100% opacity.
= video 3 (hard-key, speed 1x) 0% opacity.
= video 4 (hard-key, speed 2x) 0% opacity.Hard-key: ON
Speed 2x: OFF
= video 1 (soft-key, speed 1x) 0% opacity.
= video 2 (soft-key, speed 2x) 0% opacity.
= video 3 (hard-key, speed 1x) 100% opacity.
= video 4 (hard-key, speed 2x) 0% opacity.Hard-key: ON
Speed 2x: ON
= video 1 (soft-key, speed 1x) 0% opacity.
= video 2 (soft-key, speed 2x) 0% opacity.
= video 3 (hard-key, speed 1x) 0% opacity.
= video 4 (hard-key, speed 2x) 100% opacity.The only thing is, I’m looking for a way to make the opacity of each layer depending on 2 checkboxes (in instead of 1).
Trying to let it depend on just 1 checkbox with expressions already succeeded (see code below)if (thisComp.layer("Expr_CTRL").effect("Hard-key")("Checkbox") == 0) 100 else 0