-
After effects ScriptUI, adding a function on button click
How is it possible to know when my button is clicked or what element is selected from my list etc…
I could not find any reference or guide for this :/example:
function myScript(thisObj) {
function myScript_buildUI(thisObj) {
var myPanel = (thisObj instanceof Panel) ? thisObj : new Window(“palette”, “My Panel Name”, [0, 0, 300,300]);res=”group{orientation:’column’, alignment:[‘fill’, ‘fill’], alignChildren:[‘fill’, ‘fill’],\
myButton: Button{text:’Button Name’},\myDropDownList: DropDownList{properties:{items:[‘Item 1 Name’, ‘Item 2 Name’, ‘Item 3 Name’, ‘Item 4 Name’]}},\
}”myPanel.grp = myPanel.add(res);
…