Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects After Effects Scripting: Action on Tab Change

  • After Effects Scripting: Action on Tab Change

     Mike Sevigny updated 6 years, 6 months ago 55,100 Members · 2 Posts
  • Mike Sevigny

    March 26, 2016 at 2:52 pm

    I’m wondering if there’s a way to update certain values in my (floating) GUI when the user changes from one Tab to the other.

    I’ve tried variations of the following:
    myTab.onClick = function()

    Thanks in advance!
    Mike Sevigny

  • Mike Sevigny

    May 12, 2016 at 2:12 pm

    Solved.
    The following works:
    // Create the tabbed panel & 3 Tabs
    var scriptWindow = new Window("palette", "SCRIPT_NAME"); {
    var tabPanel = scriptWindow.add("tabbedpanel", undefined, "")
    var Tab1 = tabPanel.add("tab", undefined, "TAB_1")
    var Tab2 = tabPanel.add("tab", undefined, "TAB_2")
    var Tab3 = tabPanel.add("tab", undefined, "TAB_3")
    }
    scriptWindow.show();

    // Do something when the Tab is changed to 'Tab1'
    tabPanel.onChange = function() {
    if (String(tabPanel.selection) == "Tab1") { // If 'Tab1' is selected
    // do something
    }
    }

    Cheers,
    Mike Sevigny

Viewing 1 - 2 of 2 posts

Log in to reply.

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