View all expressions
Conditional

Toggle Layer Visibility with a Dropdown Menu

This expression links opacity to a dropdown menu, allowing users to toggle visibility based on selection.

Contributed by:

u/Subylovin


dropdown = thisLayer.effect("Dropdown Menu Control")("Menu");
dropdown == 1 ? 100 : 0;

Toggle Layer Visibility with a Dropdown Menu

Practical use case

Easily turn layers on or off using a dropdown menu for better control over variations in templates.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image