You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This functionality was added in After Effects (Beta) 26.0 and is subject to change while it remains in Beta.
469
+
470
+
#### Description
471
+
472
+
An array of all item strings in a dropdown menu property. This attribute applies to dropdown menu properties of effects and layers, including custom strings in the Menu property of the Dropdown Menu Control.
473
+
474
+
This property corresponds to [Property.setPropertyParameters()](#propertysetpropertyparameters), acting as the getter for the strings in a dropdown menu.
475
+
476
+
#### Examples
477
+
478
+
```javascript
479
+
// Get all options from a Dropdown Menu Control
480
+
var comp =app.project.activeItem;
481
+
if (comp &&comp.selectedLayers.length>0) {
482
+
var lyr =comp.selectedLayers[0];
483
+
var fx =lyr.property("ADBE Effect Parade").property("Dropdown Menu Control");
484
+
var menuProp =fx.property("Menu");
485
+
var options =menuProp.propertyParameters; // Array of strings
This functionality was added in After Effects (Beta) 26.0 and is subject to change while it remains in Beta.
617
+
618
+
#### Description
619
+
620
+
The text string of the currently-selected item in a dropdown menu property. This attribute applies to dropdown menu properties of effects and layers, including custom strings in the Menu property of Dropdown Menu Controls.
621
+
622
+
#### Examples
623
+
624
+
```javascript
625
+
// Get the currently-selected text string from a Dropdown Menu Control
626
+
var comp =app.project.activeItem;
627
+
if (comp &&comp.selectedLayers.length>0) {
628
+
var lyr =comp.selectedLayers[0];
629
+
var fx =lyr.property("ADBE Effect Parade").property("Dropdown Menu Control");
630
+
var menuProp =fx.property("Menu");
631
+
var selectedText =menuProp.valueText; // e.g., "Sunday"
0 commit comments