Expression Copied to Clipboard! πŸ—‚
← Back to Expressions

Show/Hide Layer With Dropdown - After Effects Expression

Apply to opacity property of a layer. Change name of layer to start with [1,2,3] to match the Dropdown control.

Show/Hide Layer With Dropdown

select = effect("Dropdown Control")("Menu").value;

if (select === parseInt(thisLayer.name.charAt(0))){ 100 } else { 0 }

‍

Copied to Clipboard!
select = effect("Dropdown Control")("Menu").value; if (select === parseInt(thisLayer.name.charAt(0))){ 100 } else { 0 }

How to Use This Expression

Link select variable to your Dropdown menu.

IMPORTANT: be sure to rename your layer to start with the number that corresponds to the dropdown menu.


Example:

1 Background Design A Β ----> linked to dropdown menu selection 1

2 Background Design B ----> linked to dropdown menu selection 1

More expressions you might like...

Credit