Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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

  • After Effects Scripting: Action on Tab Change

    Posted by Mike Sevigny on 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 replied 8 years ago 55,100 Members · 1 Reply
  • 1 Reply
  • Mike Sevigny

    May 12, 2016 at 2:12 pm

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

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

    Mike Sevigny

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