-
Where to write setProperty script
I’m quite new to script in After Effects.
I’ve been successfully improving the efficiency of a project I’m working on using scripts and expression controls but I’ve hit a snag.
I’d like to dynamically change the options of a series of dropdown lists as these options will change over time and manually changing them all would be time consuming and prone to error.
I believe that ‘setPropertyParameters’ is the solution but I don’t know where to write the code.
The example provided on Adobe’s After Effects Scripting Guide is below, but I don’t know where to put such code to make my dropdown list’s options change. The stopwatch on the Dropdown’s Menu property seems to want an index as the return value.var dropdownItems = [ "First Item", "Second Item", "(-", "Another Item", "Last Item" ]; var dropdownEffect = layer.property("ADBE Effect Parade").addProperty("ADBE Dropdown Control"); dropdownEffect.property(1).setPropertyParameters(dropdownItems);