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

Dropdown Menu Select - After Effects Expression

Control the opacity of a layer by the dropdown menu selection. Add a Number [1,2,3,etc] to the beginning of layer to make it work

Dropdown Menu Select

select = thisComp.layer("CONTROLS").effect("Dropdown")("Menu"); // pick whip to your dropdown
(select == parseInt(thisLayer.name[0])) ? value : 0;

Copied to Clipboard!
select = thisComp.layer("CONTROLS").effect("Face Select")("Menu");
(select == parseInt(thisLayer.name[0])) ? value : 0;

Use this expression to show or hide a layer with a dropdown menu. If the first character of your layer name matches the dropdown value it will show opacity 100. If not, it will be 0.

More expressions you might like...

Credit