Controls

icon picker
Dropdown

1. How to Add/Remove and Reorder Items

To add/remove or reorder items from the dropdown simply click Edit... in the upper right corner of the effects panel.
Use the plus/minus buttons to add/remove items.
Drag & Drop items to reorder them
Screenshots
AfterFX_KtdRg9kdju.png

2. How to Read Values From Expressions

The dropdown control returns the selection as a integer number.
The first item in the list has the value 1.
The dropdown control should always be used for .

Example: Dropdown control which gives a choice between a circle, rectangle or triangle

Add a dropdown control and name it ‘Shape’.
Add 3 items and name them circle, rectangle and triangle.
Create 3 layers, one for each shape.
On each layer add an Opacity expression (as shown in the code below) and change the if value to 2 for Rectangle and 3 for Triangle.

// Read selected value
let shape = thisComp.layer("Settings").effect("Shape")("Menu");

// 1 is Circle, 2 is Rectangle, 3 is Triangle
if(shape == 1) {
100;
} else {
0;
}
Screenshots
AfterFX_UVeB744GHl.gif

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.