Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects After effects ScriptUI, adding a function on button click

  • After effects ScriptUI, adding a function on button click

    Posted by Dombi Botond on August 22, 2014 at 1:42 pm

    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);

    Jakob Wagner replied 10 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy