Created
February 1, 2017 00:21
-
-
Save x9t9/1406f1667b8d0973fc851017e679b44f to your computer and use it in GitHub Desktop.
Adobe CC Scripting UI basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a script ui for a window ( not panel ) | |
// https://forums.adobe.com/thread/1238745 | |
var box = new Window('dialog', "Some title"); | |
box.panel = box.add('panel', undefined, "Panel title"); | |
box.panel_text1 = box.panel.add('edittext', undefined, "Default_value_1"); | |
box.panel_text2 = box.panel.add('edittext', undefined, "Default_value_2"); | |
box.panel_text3 = box.panel.add('edittext', undefined, "Default_value_3"); | |
box.panel2 = box.add('panel', undefined, "Title (not displayed)"); | |
box.panel2.group = box.panel2.add('group', undefined ); | |
box.panel2.group.orientation='row'; | |
box.panel2.group.text1 = box.panel2.group.add('statictext', undefined, "Press Button to close"); | |
box.panel2.group.closeBtn = box.panel2.group.add('button',undefined, "Close", {name:'close'}); | |
box.panel3 = box.add('panel', undefined, "Title 2 (not displayed)"); | |
box.panel3.group = box.panel3.add('group', undefined, ); | |
box.panel3.group.orientation='column'; | |
box.panel3.group.text1 = box.panel3.group.add('statictext', undefined, "Dummy Button for nothing"); | |
box.panel3.group.closeBtn = box.panel3.group.add('button',undefined, "Somewhat", {name:'Somewhat'}); | |
box.panel2.group.closeBtn.onClick = function(){ | |
box.close(); | |
} | |
box.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment