Copy link to clipboard
Copied
I'm trying to add list of array values as items for Dropdown Menu Control Effect? Here's the screen shot...
But the each items in array is different from each other
Code:
//Edited code var array = ["1","2","043","4","5"];
var array = ["1","2","443","4","5"];
var layer = app.project.activeItem.selectedLayers[0];
layer.property("ADBE Effect Parade").property("Dropdown Menu Control").property(1).setPropertyParameters(array);
The string "443" and "4" conflict each other. May I know the reason why is it happens?
Fixed on After Effects CC 2020 v17.5.1
Copy link to clipboard
Copied
The code in your picture throws an error, the code you posted works.
I saw another post about this behaviour. Apparently, if an item is a substring from the start of the previous item, this error occurs.(ex of pair of errors ["Human kind", "Human"], ["dropDown","drop"])
I tried putting an invisible character at the start of "4", but it shows as ? in the dropDown. You should make a post on the bug report page.
Copy link to clipboard
Copied
Thank you for letting me know that... I just copied wrong code from the editor. However thank you for letting me know this is an substring error. I'll report the bug in report page.
Copy link to clipboard
Copied
Not fixed yet - After Effects CC 2020 v17.1
Copy link to clipboard
Copied
Fixed on After Effects CC 2020 v17.5.1
Copy link to clipboard
Copied
I'm using CC2022, seems like AE won't allow any identical items eg ["BLANK", "BLANK"].
Substrings are fine, so if you have an array with identical strings needs changing to :
["BLANK 1", "BLANK 2"]
or ["1. BLANK", "2. BLANK"]
I noticed AE does this when you first apply a dd ["Item 1", "Item 2", "Item 3"]
Logically you wouldn't want identical items but seems strange that you can't.
Hope this helps anyone 🙂