diff --git a/Export Layers To Files (Fast).jsx b/Export Layers To Files (Fast).jsx index c17fce6..259ba89 100755 --- a/Export Layers To Files (Fast).jsx +++ b/Export Layers To Files (Fast).jsx @@ -20,6 +20,23 @@ app.bringToFront(); // Type definitions // +var PrefixSelectionMode = { + IGNORE_PREFIXED: 1, + ONLY_PREFIXED: 2, + + values: function() { + return [this.IGNORE_PREFIXED, this.ONLY_PREFIXED]; + }, + + forIndex: function(index) { + return this.values()[index]; + }, + + getIndex: function(value) { + return indexOf(this.values(), value); + } +}; + var FileNameType = { AS_LAYERS: 1, INDEX_ASC: 2, @@ -354,8 +371,9 @@ var DEFAULT_SETTINGS = { exportLayerTarget: app.stringIDToTypeID("exportLayerTarget"), fileType: app.stringIDToTypeID("fileType"), groupsAsFolders: app.stringIDToTypeID("groupsAsFolders"), - ignoreLayers: app.stringIDToTypeID('ignoreLayers'), - ignoreLayersString: app.stringIDToTypeID('ignoreLayersString'), + ignoreModeEnabled: app.stringIDToTypeID('ignoreModeEnabled'), + ignoreModeString: app.stringIDToTypeID('ignoreModeString'), + ignoreModeSelection: app.stringIDToTypeID('ignoreModeSelection'), jpgQuality: app.stringIDToTypeID('jpgQuality'), jpgMatte: app.stringIDToTypeID('jpgMatte'), jpgIcc: app.stringIDToTypeID('jpgIcc'), @@ -643,10 +661,16 @@ function exportLayers(exportLayerTarget, progressBarWindow) { for (var i = (prefs.exportForeground ? 1 : 0); i < count; ++i) { var layer = layersToExport[i].layer; - // Ignore layers that have are prefixed with ignoreLayersString - if (prefs.ignoreLayers - && prefs.ignoreLayersString.length > 0 - && layer.name.indexOf(prefs.ignoreLayersString) === 0) continue; + // Ignore layers that have are prefixed with ignoreModeString + if ((prefs.ignoreModeEnabled + && prefs.ignoreModeSelection == PrefixSelectionMode.IGNORE_PREFIXED + && prefs.ignoreModeString.length > 0 + && layer.name.indexOf(prefs.ignoreModeString) === 0) + || (prefs.ignoreModeEnabled + && prefs.ignoreModeSelection == PrefixSelectionMode.ONLY_PREFIXED + && prefs.ignoreModeString.length > 0 + && layer.name.indexOf(prefs.ignoreModeString) !== 0)) continue; + var fileName; switch (prefs.nameFiles) { @@ -1220,12 +1244,18 @@ function showDialog() { fields.cbVisibleOnly.enabled = (visibleLayerCount > 0); fields.cbVisibleOnly.value = prefs.visibleOnly; - fields.cbIgnorePrefix.value = prefs.ignoreLayers; - fields.txtIgnorePrefix.enabled = prefs.ignoreLayers; - - fields.txtIgnorePrefix.text = prefs.ignoreLayersString; - fields.cbIgnorePrefix.onClick = function() { - fields.txtIgnorePrefix.enabled = this.value; + + fields.cbIgnoreModeSelectionEnabled.value = prefs.ignoreModeEnabled; + fields.txtIgnoreModePrefix.enabled = prefs.ignoreModeEnabled; + fields.ddIgnoreModeSelection.selection = PrefixSelectionMode.getIndex(prefs.ignoreModeSelection); + fields.ddIgnoreModeSelection.enabled = prefs.ignoreModeEnabled; + fields.lblIgnoreModeSelection.enabled = prefs.ignoreModeEnabled; + fields.txtIgnoreModePrefix.text = prefs.ignoreModeString; + + fields.cbIgnoreModeSelectionEnabled.onClick = function() { + fields.lblIgnoreModeSelection.enabled = this.value; + fields.txtIgnoreModePrefix.enabled = this.value; + fields.ddIgnoreModeSelection.enabled = this.value; }; @@ -1564,8 +1594,9 @@ function saveSettings(dialog) { desc.putInteger(DEFAULT_SETTINGS.exportLayerTarget, exportLayerTarget); desc.putString(DEFAULT_SETTINGS.fileType, fields.tabpnlExportOptions.selection.text); desc.putBoolean(DEFAULT_SETTINGS.groupsAsFolders, fields.cbGroupsAsFolders.value); - desc.putBoolean(DEFAULT_SETTINGS.ignoreLayers, fields.cbIgnorePrefix.value); - desc.putString(DEFAULT_SETTINGS.ignoreLayersString, fields.txtIgnorePrefix.text); + desc.putBoolean(DEFAULT_SETTINGS.ignoreModeEnabled, fields.cbIgnoreModeSelectionEnabled.value); + desc.putString(DEFAULT_SETTINGS.ignoreModeString, fields.txtIgnoreModePrefix.text); + desc.putInteger(DEFAULT_SETTINGS.ignoreModeSelection, PrefixSelectionMode.forIndex(fields.ddIgnoreModeSelection.selection.index)); desc.putInteger(DEFAULT_SETTINGS.jpgQuality, fields.sldrJpgQuality.value); desc.putInteger(DEFAULT_SETTINGS.jpgMatte, fields.ddJpgMatte.selection.index); @@ -1659,7 +1690,8 @@ function getDefaultSettings() { exportLayerTarget: ExportLayerTarget.ALL_LAYERS, fileType: "PNG-24", groupsAsFolders: false, - ignoreLayersString: "!", + ignoreModeString: "!", + ignoreModeSelection: 0, jpgIcc: false, jpgMatte: 0, jpgOptimized: false, @@ -1741,8 +1773,9 @@ function getSettings(formatOpts) { exportLayerTarget: desc.getInteger(DEFAULT_SETTINGS.exportLayerTarget), fileType: desc.getString(DEFAULT_SETTINGS.fileType), groupsAsFolders: desc.getBoolean(DEFAULT_SETTINGS.groupsAsFolders), - ignoreLayers: desc.getBoolean(DEFAULT_SETTINGS.ignoreLayers), - ignoreLayersString: desc.getString(DEFAULT_SETTINGS.ignoreLayersString), + ignoreModeEnabled: desc.getBoolean(DEFAULT_SETTINGS.ignoreModeEnabled), + ignoreModeString: desc.getString(DEFAULT_SETTINGS.ignoreModeString), + ignoreModeSelection: desc.getInteger(DEFAULT_SETTINGS.ignoreModeSelection), jpgIcc: desc.getBoolean(DEFAULT_SETTINGS.jpgIcc), jpgMatte: desc.getInteger(DEFAULT_SETTINGS.jpgMatte), jpgOptimized: desc.getBoolean(DEFAULT_SETTINGS.jpgOptimized), @@ -2469,8 +2502,10 @@ function getDialogFields(dialog) { radioAll: dialog.findElement("radioAll"), radioSelected: dialog.findElement("radioSelected"), cbVisibleOnly: dialog.findElement("cbVisibleOnly"), - cbIgnorePrefix: dialog.findElement("cbIgnorePrefix"), - txtIgnorePrefix: dialog.findElement("txtIgnorePrefix"), + cbIgnoreModeSelectionEnabled: dialog.findElement("cbIgnoreModeSelectionEnabled"), + txtIgnoreModePrefix: dialog.findElement("txtIgnoreModePrefix"), + ddIgnoreModeSelection: dialog.findElement("ddIgnoreModeSelection"), + lblIgnoreModeSelection: dialog.findElement("lblIgnoreModeSelection"), ddNameAs: dialog.findElement("ddNameAs"), cbDelimiter: dialog.findElement("cbDelimiter"), @@ -2654,20 +2689,40 @@ function makeMainDialog() { // GRPIGNOREPREFIX // =============== - var grpIgnorePrefix = grpIgnore.add("group", undefined, {name: "grpIgnorePrefix"}); - grpIgnorePrefix.orientation = "row"; - grpIgnorePrefix.alignChildren = ["left","center"]; - grpIgnorePrefix.spacing = 10; - grpIgnorePrefix.margins = 0; - - var cbIgnorePrefix = grpIgnorePrefix.add("checkbox", undefined, undefined, {name: "cbIgnorePrefix"}); - cbIgnorePrefix.helpTip = "Ignore layers starting with"; - cbIgnorePrefix.text = "Ignore Layers Starting With "; - - var txtIgnorePrefix = grpIgnorePrefix.add('edittext {properties: {name: "txtIgnorePrefix"}}'); - txtIgnorePrefix.helpTip = "The prefix to match against"; - txtIgnorePrefix.text = "!"; - txtIgnorePrefix.preferredSize.width = 31; + var grpIgnoreModePrefix = grpIgnore.add("group", undefined, {name: "grpIgnorePrefix"}); + grpIgnoreModePrefix.orientation = "row"; + grpIgnoreModePrefix.alignChildren = ["left","center"]; + grpIgnoreModePrefix.spacing = 10; + grpIgnoreModePrefix.margins = 0; + + var cbIgnoreModeSelectionEnabled = grpIgnoreModePrefix.add("checkbox", undefined, undefined, {name: "cbIgnoreModeSelectionEnabled"}); + cbIgnoreModeSelectionEnabled.helpTip = "Enable layer selection by prefix"; + cbIgnoreModeSelectionEnabled.text = ""; + var ddIgnoreModeSelection_array = ['Ignore', 'Only']; + var ddIgnoreModeSelection = grpIgnoreModePrefix.add( + 'dropdownlist', + undefined, + undefined, + { + name: 'ddIgnoreModeSelection', + items: ddIgnoreModeSelection_array, + } + ); + ddIgnoreModeSelection.helpTip = 'Choose whether to ignore or select only layers with prefix'; + ddIgnoreModeSelection.selection = 0; + + var lblIgnoreModeSelection = grpIgnoreModePrefix.add( + 'statictext', + undefined, + undefined, + { name: 'lblIgnoreModeSelection' } + ); + lblIgnoreModeSelection.text = 'Layers Starting With'; + + var txtIgnoreModePrefix = grpIgnoreModePrefix.add('edittext {properties: {name: "txtIgnoreModePrefix"}}'); + txtIgnoreModePrefix.helpTip = "The prefix to match against"; + txtIgnoreModePrefix.text = "!"; + txtIgnoreModePrefix.preferredSize.width = 31; // PNLNAMEFILES // ============ diff --git a/README.md b/README.md index fa6a83a..8585f7c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ This script does not try to achieve feature parity with the built-in script, but - [Contributing](#contributing) - [Feedback / Bugs](#feedback--bugs) - ## How to Use _Disclaimer:_ We are not associated with Adobe in any way. For any issues relating to Adobe products or Adobe scripts please contact them directly. We have never had an issue, but **please use this script at your own risk**. We are not responsible for any lost data or damaged PSDs so always make a back-up. @@ -58,11 +57,11 @@ Some of the features of the script include... Will only export the selected group. Note that you must selected the group before launching the script, otherwise this option will be disabled. When you run the script this way, all other layers will be left untouched, meaning any visible layers on top or bottom may show in the export. -### Ignore Layers Starting With +### Ignore/Only Layers Starting With -When this is selected, you can specify a prefix that will be used to match against layer names. Any matching layers will be ignored during the export. +When this is selected, you can specify whether to ignore or select layers with a specified prefix. Depending on the option selected only layers with prefix or without it will be exported. -For example, if you specify `x` in the input, all layers starting with the letter `x` will not be exported. +For example, if you specify `x` in the input when 'Ignore' mode is selected, all layers starting with the letter `x` will not be exported. If you select 'Only' mode, just the layers with name starting witx `x` will be exported. ### Filenames @@ -140,7 +139,6 @@ To use the script this way, follow these instructions: In order to make changes to the settings again, you'll need to change `BATCH_OPERATION` back to `false` and rerun the script. - ## Requirements We do our best to have the script be backwards compatible (back to Adobe Photoshop CS2) but are limited in what we can test for, both by Photoshop versions as well as OS. If you are encountering any issues with the current version, try downloading [previous versions](https://github.com/antipalindrome/Photoshop-Export-Layers-to-Files-Fast/releases) of the script instead. diff --git a/dev/dialog.js b/dev/dialog.js index a857f0b..aee81a8 100644 --- a/dev/dialog.js +++ b/dev/dialog.js @@ -1,4 +1,4 @@ /* Code for Import https://scriptui.joonas.me — (Triple click to select): -{"items":{"item-0":{"id":0,"type":"Dialog","parentId":false,"style":{"enabled":true,"varName":null,"windowType":"Dialog","creationProps":{"su1PanelCoordinates":false,"maximizeButton":false,"minimizeButton":false,"independent":false,"closeButton":false,"borderless":false,"resizeable":true},"text":"Export Layers To Files v2.7.1","preferredSize":[0,0],"margins":[10,10,5,10],"orientation":"column","spacing":5,"alignChildren":["center","center"]}},"item-1":{"id":1,"type":"Panel","parentId":84,"style":{"enabled":true,"varName":"pnlExport","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Export","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":11,"alignChildren":["left","top"],"alignment":"fill"}},"item-2":{"id":2,"type":"Group","parentId":1,"style":{"enabled":true,"varName":"grpExport","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-3":{"id":3,"type":"RadioButton","parentId":2,"style":{"enabled":true,"varName":"radioAll","text":"All Layers","preferredSize":[0,0],"alignment":null,"helpTip":"Exports all layers","checked":true}},"item-4":{"id":4,"type":"RadioButton","parentId":2,"style":{"enabled":true,"varName":"radioSelected","text":"Selected Group","preferredSize":[0,0],"alignment":null,"helpTip":"Only exports selected group. Must select a group to be enabled.","checked":false}},"item-5":{"id":5,"type":"Group","parentId":1,"style":{"enabled":true,"varName":"grpIgnore","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":5,"alignChildren":["left","center"],"alignment":null}},"item-6":{"id":6,"type":"Checkbox","parentId":5,"style":{"enabled":true,"varName":"cbVisibleOnly","text":"Visible Only","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to export only visible layers"}},"item-7":{"id":7,"type":"Checkbox","parentId":9,"style":{"enabled":true,"varName":"cbIgnorePrefix","text":"Ignore Layers Starting With ","preferredSize":[0,0],"alignment":null,"helpTip":"Ignore layers starting with"}},"item-8":{"id":8,"type":"EditText","parentId":9,"style":{"enabled":true,"varName":"txtIgnorePrefix","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"!","justify":"left","preferredSize":[31,0],"alignment":null,"helpTip":"The prefix to match against"}},"item-9":{"id":9,"type":"Group","parentId":5,"style":{"enabled":true,"varName":"grpIgnorePrefix","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-10":{"id":10,"type":"Panel","parentId":84,"style":{"enabled":true,"varName":"pnlDestination","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Output Destination","preferredSize":[0,0],"margins":10,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":"left"}},"item-11":{"id":11,"type":"EditText","parentId":10,"style":{"enabled":true,"varName":"txtDestination","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[200,0],"alignment":null,"helpTip":"Where to save the files"}},"item-12":{"id":12,"type":"Button","parentId":10,"style":{"enabled":true,"varName":"btnBrowse","text":"Browse...","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-13":{"id":13,"type":"Panel","parentId":84,"style":{"enabled":true,"varName":"pnlNameFiles","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Filenames","preferredSize":[0,0],"margins":[10,10,10,10],"orientation":"column","spacing":4,"alignChildren":["left","top"],"alignment":"fill"}},"item-14":{"id":14,"type":"DropDownList","parentId":13,"style":{"enabled":true,"varName":"ddNameAs","text":"DropDownList","listItems":"Use layer name (strip extension), Use layer name (keep extension), Use layer and parent group names, Use index descending, Use index ascending","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-15":{"id":15,"type":"Checkbox","parentId":122,"style":{"enabled":true,"varName":"cbDelimiter","text":"Use Custom Delimiter","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to use a custom delimiter between words"}},"item-20":{"id":20,"type":"DropDownList","parentId":22,"style":{"enabled":true,"varName":"ddLetterCasing","text":"DropDownList","listItems":"Keep, Lowercase,Uppercase","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-21":{"id":21,"type":"StaticText","parentId":22,"style":{"enabled":true,"varName":"lblLetterCasing","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Letter Casing","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-22":{"id":22,"type":"Group","parentId":13,"style":{"enabled":true,"varName":"grpCasing","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-23":{"id":23,"type":"Group","parentId":77,"style":{"enabled":true,"varName":"grpPrefixSuffix","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":2,"alignChildren":["left","center"],"alignment":null}},"item-24":{"id":24,"type":"EditText","parentId":23,"style":{"enabled":true,"varName":"txtPrefix","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[100,0],"alignment":null,"helpTip":"Prefix will be added before every layer name"}},"item-25":{"id":25,"type":"EditText","parentId":23,"style":{"enabled":true,"varName":"txtSuffix","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[100,0],"alignment":null,"helpTip":"Suffix will be added after every layer name"}},"item-26":{"id":26,"type":"StaticText","parentId":23,"style":{"enabled":true,"varName":"lblEllipsis","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"...","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-30":{"id":30,"type":"TabbedPanel","parentId":39,"style":{"enabled":true,"varName":"tabpnlExportOptions","preferredSize":[0,0],"margins":10,"alignment":"fill","selection":32}},"item-31":{"id":31,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabPng8","text":"PNG-8","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-32":{"id":32,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabPng24","text":"PNG-24","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-33":{"id":33,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabJpg","text":"JPG","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-37":{"id":37,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabTga","text":"TGA","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-38":{"id":38,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabBmp","text":"BMP","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-39":{"id":39,"type":"Panel","parentId":0,"style":{"enabled":true,"varName":"pnlExportAs","creationProps":{"borderStyle":"none","su1PanelCoordinates":false},"text":"Export As","preferredSize":[0,0],"margins":[6,0,0,0],"orientation":"column","spacing":10,"alignChildren":["center","center"],"alignment":"fill"}},"item-40":{"id":40,"type":"DropDownList","parentId":42,"style":{"enabled":true,"varName":"ddPng24Matte","text":"DropDownList","listItems":"White, Black, Gray, -, Background, Foreground","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-41":{"id":41,"type":"StaticText","parentId":42,"style":{"enabled":true,"varName":"lblPng24Matte","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Matte","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-42":{"id":42,"type":"Group","parentId":32,"style":{"enabled":true,"varName":"grpPng24Matte","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-44":{"id":44,"type":"Checkbox","parentId":32,"style":{"enabled":true,"varName":"cbPng24Transparency","text":"Transparency","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-45":{"id":45,"type":"Checkbox","parentId":32,"style":{"enabled":true,"varName":"cbPng24Interlaced","text":"Interlaced","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-47":{"id":47,"type":"Panel","parentId":85,"style":{"enabled":true,"varName":"pnlOutput","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Output Options","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":10,"alignChildren":["left","top"],"alignment":"fill"}},"item-48":{"id":48,"type":"Checkbox","parentId":76,"style":{"enabled":true,"varName":"cbGroupsAsFolders","text":"Groups as Folders","preferredSize":[0,0],"alignment":null,"helpTip":"Groups and sub-groups are saved as directories."}},"item-49":{"id":49,"type":"Checkbox","parentId":76,"style":{"enabled":true,"varName":"cbTopGroupsAsFolders","text":"Top Groups as Folders","preferredSize":[0,0],"alignment":null,"helpTip":"Groups are saved as directories. Layers in nested groups will be saved in their topmost group."}},"item-50":{"id":50,"type":"Checkbox","parentId":76,"style":{"enabled":true,"varName":"cbTopGroupsAsLayers","text":"Merge Groups as Layers","preferredSize":[0,0],"alignment":null,"helpTip":"Top level groups will merge all their children into a single layer before export"}},"item-52":{"id":52,"type":"StaticText","parentId":53,"style":{"enabled":true,"varName":"lblPrefix","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Prefix","justify":"left","preferredSize":[0,0],"alignment":"center","helpTip":null}},"item-53":{"id":53,"type":"Group","parentId":77,"style":{"enabled":true,"varName":"grpPrefixSuffixLabel","preferredSize":[0,0],"margins":[0,0,0,0],"orientation":"row","spacing":81,"alignChildren":["left","center"],"alignment":null}},"item-54":{"id":54,"type":"StaticText","parentId":53,"style":{"enabled":true,"varName":"lblSuffix","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Suffix","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-55":{"id":55,"type":"Divider","parentId":47,"style":{"enabled":true,"varName":"dvdrOutput"}},"item-56":{"id":56,"type":"Checkbox","parentId":75,"style":{"enabled":true,"varName":"cbForeground","text":"Top Layer as Foreground","preferredSize":[0,0],"alignment":null,"helpTip":"The top layer will be used as a foreground in every export."}},"item-57":{"id":57,"type":"Checkbox","parentId":75,"style":{"enabled":true,"varName":"cbBackground","text":"Bottom Layer as Background","preferredSize":[0,0],"alignment":null,"helpTip":"The bottom layer will be used as a background in every export."}},"item-58":{"id":58,"type":"Panel","parentId":85,"style":{"enabled":true,"varName":"pnlModifyLayers","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Modify Layers","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":5,"alignChildren":["left","top"],"alignment":"fill"}},"item-59":{"id":59,"type":"DropDownList","parentId":60,"style":{"enabled":true,"varName":"ddTrim","text":"DropDownList","listItems":"Each Layer, Each Layer (use trim()),Combined","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-60":{"id":60,"type":"Group","parentId":58,"style":{"enabled":true,"varName":"grpTrim","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-62":{"id":62,"type":"Group","parentId":58,"style":{"enabled":true,"varName":"grpScale","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-64":{"id":64,"type":"Checkbox","parentId":62,"style":{"enabled":true,"varName":"cbScale","text":"Scale","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to scale every layer before export"}},"item-65":{"id":65,"type":"EditText","parentId":67,"style":{"enabled":true,"varName":"txtScale","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[36,0],"alignment":null,"helpTip":null}},"item-66":{"id":66,"type":"StaticText","parentId":67,"style":{"enabled":true,"varName":"lblScale","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"%","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-67":{"id":67,"type":"Group","parentId":62,"style":{"enabled":true,"varName":"grpScaleLabel","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":0,"alignChildren":["left","center"],"alignment":null}},"item-68":{"id":68,"type":"Checkbox","parentId":60,"style":{"enabled":true,"varName":"cbTrim","text":"Trim","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to trim before export","checked":false}},"item-69":{"id":69,"type":"Group","parentId":58,"style":{"enabled":true,"varName":"grpPadding","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-70":{"id":70,"type":"Checkbox","parentId":69,"style":{"enabled":true,"varName":"cbPadding","text":"Padding","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to add padding to every layer before export"}},"item-71":{"id":71,"type":"EditText","parentId":73,"style":{"enabled":true,"varName":"txtPadding","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"0","justify":"left","preferredSize":[29,0],"alignment":null,"helpTip":null}},"item-72":{"id":72,"type":"StaticText","parentId":73,"style":{"enabled":true,"varName":"lblPadding","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"px","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-73":{"id":73,"type":"Group","parentId":69,"style":{"enabled":true,"varName":"grpPaddingLabel","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":0,"alignChildren":["left","center"],"alignment":null}},"item-75":{"id":75,"type":"Group","parentId":47,"style":{"enabled":true,"varName":"grpForegroundBackground","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":5,"alignChildren":["left","center"],"alignment":null}},"item-76":{"id":76,"type":"Group","parentId":47,"style":{"enabled":true,"varName":"grpGroupsAs","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":5,"alignChildren":["left","center"],"alignment":null}},"item-77":{"id":77,"type":"Group","parentId":13,"style":{"enabled":true,"varName":"grpPrefixSuffixWrapper","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":0,"alignChildren":["left","center"],"alignment":null}},"item-78":{"id":78,"type":"Group","parentId":0,"style":{"enabled":true,"varName":"grpColContainer","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["center","center"],"alignment":null}},"item-79":{"id":79,"type":"Button","parentId":82,"style":{"enabled":true,"varName":"btnRun","text":"Run","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":"Runs the script with the selected settings"}},"item-80":{"id":80,"type":"Button","parentId":120,"style":{"enabled":true,"varName":"btnCancel","text":"Cancel","justify":"center","preferredSize":[111,0],"alignment":null,"helpTip":"Closes the dialog and does not save any changes"}},"item-81":{"id":81,"type":"Button","parentId":120,"style":{"enabled":true,"varName":"btnSaveAndCancel","text":"Save and Close","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":"Closes the dialog but saves any changes made"}},"item-82":{"id":82,"type":"Group","parentId":85,"style":{"enabled":true,"varName":"grpActions","preferredSize":[0,0],"margins":[0,0,1,0],"orientation":"column","spacing":5,"alignChildren":["fill","top"],"alignment":"fill"}},"item-83":{"id":83,"type":"Checkbox","parentId":82,"style":{"enabled":true,"varName":"cbOverwriteFiles","text":"Overwrite Existing Files","preferredSize":[0,0],"alignment":"center","helpTip":"If checked, will overwrite existing files if they have the same name. Otherwise it will make unique copies"}},"item-84":{"id":84,"type":"Group","parentId":78,"style":{"enabled":true,"varName":"grpCol1","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":17,"alignChildren":["left","center"],"alignment":"top"}},"item-85":{"id":85,"type":"Group","parentId":78,"style":{"enabled":true,"varName":"grpCol2","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":10,"alignChildren":["left","center"],"alignment":"top"}},"item-86":{"id":86,"type":"Slider","parentId":88,"style":{"enabled":true,"varName":"sldrJpgQuality","preferredSize":[200,0],"alignment":null,"helpTip":null}},"item-87":{"id":87,"type":"StaticText","parentId":88,"style":{"enabled":true,"varName":"lblQuality","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Quality","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-88":{"id":88,"type":"Group","parentId":33,"style":{"enabled":true,"varName":"grpJpgQuality","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-90":{"id":90,"type":"Group","parentId":33,"style":{"enabled":true,"varName":"grpJpgMatte","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-91":{"id":91,"type":"StaticText","parentId":90,"style":{"enabled":true,"varName":"lblJpgMatte","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Matte","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-92":{"id":92,"type":"DropDownList","parentId":90,"style":{"enabled":true,"varName":"ddJpgMatte","text":"DropDownList","listItems":"White, Black, Gray, -, Background, Foreground","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-93":{"id":93,"type":"Checkbox","parentId":33,"style":{"enabled":true,"varName":"cbJpgIcc","text":"ICC Profile","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-94":{"id":94,"type":"Checkbox","parentId":33,"style":{"enabled":true,"varName":"cbJpgProgressive","text":"Progressive","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-95":{"id":95,"type":"Checkbox","parentId":33,"style":{"enabled":true,"varName":"cbJpgOptimized","text":"Optimized","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":false}},"item-96":{"id":96,"type":"StaticText","parentId":88,"style":{"enabled":true,"varName":"lblJpgQualityValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-97":{"id":97,"type":"StaticText","parentId":0,"style":{"enabled":true,"varName":"lblMetadata","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"This document contains {0} layer(s), {1} of them visible, {2} selected","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-98":{"id":98,"type":"StaticText","parentId":0,"style":{"enabled":true,"varName":"lblContact","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"To get the most recent version, or leave feedback, go to:\nhttps://github.com/antipalindrome/Photoshop-Export-Layers-to-Files-Fast","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-99":{"id":99,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8ColorReduction","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-100":{"id":100,"type":"StaticText","parentId":99,"style":{"enabled":true,"varName":"lblPng8ColorReduction","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Color Reduction","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-101":{"id":101,"type":"DropDownList","parentId":99,"style":{"enabled":true,"varName":"ddPng8ColorReduction","text":"DropDownList","listItems":"Perceptual,Selective, Adaptive,Restrictive (Web),-,Black & White, Grayscale, Mac OS, Windows","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-102":{"id":102,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8NumberOfColors","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-103":{"id":103,"type":"StaticText","parentId":102,"style":{"enabled":true,"varName":"lblNumberOfColors","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Number of Colors","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-104":{"id":104,"type":"EditText","parentId":102,"style":{"enabled":true,"varName":"txtPng8NumberofColors","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[36,0],"alignment":null,"helpTip":null}},"item-105":{"id":105,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8Dither","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-106":{"id":106,"type":"StaticText","parentId":105,"style":{"enabled":true,"varName":"lblPng8Dither","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Dither","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-107":{"id":107,"type":"DropDownList","parentId":105,"style":{"enabled":true,"varName":"ddPng8Dither","text":"DropDownList","listItems":"None,Diffusion,Pattern,Noise","preferredSize":[0,0],"alignment":null,"selection":1,"helpTip":null}},"item-108":{"id":108,"type":"Slider","parentId":124,"style":{"enabled":true,"varName":"sldrPng8Dither","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-109":{"id":109,"type":"StaticText","parentId":124,"style":{"enabled":true,"varName":"lblPng8DitherValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100%","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-110":{"id":110,"type":"Checkbox","parentId":31,"style":{"enabled":true,"varName":"cbPng8Interlaced","text":"Interlaced","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-111":{"id":111,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8Matte","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-112":{"id":112,"type":"StaticText","parentId":111,"style":{"enabled":true,"varName":"lblPng8Matte","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Matte","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-113":{"id":113,"type":"DropDownList","parentId":111,"style":{"enabled":true,"varName":"ddPng8Matte","text":"DropDownList","listItems":"White, Black, Gray, -, Background, Foreground","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-114":{"id":114,"type":"Checkbox","parentId":115,"style":{"enabled":true,"varName":"cbPng8Transparency","text":"Transparency","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":false}},"item-115":{"id":115,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8Transparency","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-116":{"id":116,"type":"StaticText","parentId":123,"style":{"enabled":true,"varName":"lblPng8TransparencyDither","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Transparency Dither","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-117":{"id":117,"type":"Slider","parentId":123,"style":{"enabled":true,"varName":"sldrPng8TransparencyDither","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-118":{"id":118,"type":"StaticText","parentId":123,"style":{"enabled":true,"varName":"lblPng8TransparencyDitherValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100%","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-119":{"id":119,"type":"DropDownList","parentId":123,"style":{"enabled":true,"varName":"ddPng8TransparencyDither","text":"DropDownList","listItems":"None,Diffusion,Pattern,Noise","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-120":{"id":120,"type":"Group","parentId":82,"style":{"enabled":true,"varName":"grpCloseButtons","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["center","top"],"alignment":null}},"item-121":{"id":121,"type":"EditText","parentId":122,"style":{"enabled":true,"varName":"txtDelimiter","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"_","justify":"left","preferredSize":[22,0],"alignment":null,"helpTip":"The delimiter to use between words"}},"item-122":{"id":122,"type":"Group","parentId":13,"style":{"enabled":true,"varName":"grpDelimiter","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-123":{"id":123,"type":"Group","parentId":115,"style":{"enabled":false,"varName":"grpPng8TransparencyDither","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-124":{"id":124,"type":"Group","parentId":105,"style":{"enabled":false,"varName":"grpPng8DitherSlider","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-125":{"id":125,"type":"Group","parentId":37,"style":{"enabled":true,"varName":"grpTgaDepth","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-126":{"id":126,"type":"StaticText","parentId":125,"style":{"enabled":true,"varName":"lblTgaDepth","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Depth","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-127":{"id":127,"type":"DropDownList","parentId":125,"style":{"enabled":true,"varName":"ddTgaDepth","text":"DropDownList","listItems":"16 bit,24 bit, 36 bit","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-128":{"id":128,"type":"Checkbox","parentId":37,"style":{"enabled":true,"varName":"cbTgaWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-129":{"id":129,"type":"Checkbox","parentId":37,"style":{"enabled":true,"varName":"cbTgaRleCompression","text":"RLE Compression","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-130":{"id":130,"type":"Group","parentId":38,"style":{"enabled":true,"varName":"grpBmpDepth","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-131":{"id":131,"type":"StaticText","parentId":130,"style":{"enabled":true,"varName":"lblBmpDepth","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Depth","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-132":{"id":132,"type":"DropDownList","parentId":130,"style":{"enabled":true,"varName":"ddBmpDepth","text":"DropDownList","listItems":"24 bit, 32 bit, RGB 565 (16 bit),ARGB 1555 (16 bit),ARGB 4444 (16 bit)","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-133":{"id":133,"type":"Checkbox","parentId":38,"style":{"enabled":true,"varName":"cbBmpWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-134":{"id":134,"type":"Checkbox","parentId":38,"style":{"enabled":true,"varName":"cbBmpRleCompression","text":"RLE Compression","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-135":{"id":135,"type":"Checkbox","parentId":38,"style":{"enabled":true,"varName":"cbBmpFlipRowOrder","text":"Flip Row Order","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-136":{"id":136,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"PSD","text":"PSD","orientation":"column","spacing":10,"alignChildren":["left","top"]}},"item-137":{"id":137,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabTif","text":"TIFF","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-138":{"id":138,"type":"Group","parentId":148,"style":{"enabled":true,"varName":"grpTifQuality","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-139":{"id":139,"type":"StaticText","parentId":138,"style":{"enabled":true,"varName":"lblTifQuality","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Quality","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-140":{"id":140,"type":"Slider","parentId":138,"style":{"enabled":true,"varName":"sldrTifQuality","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-141":{"id":141,"type":"StaticText","parentId":138,"style":{"enabled":true,"varName":"lblTifQualityValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-145":{"id":145,"type":"Checkbox","parentId":137,"style":{"enabled":true,"varName":"cbTifIcc","text":"ICC Profile","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-146":{"id":146,"type":"Checkbox","parentId":137,"style":{"enabled":true,"varName":"cbTifWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-148":{"id":148,"type":"Group","parentId":137,"style":{"enabled":true,"varName":"grpTifEncoding","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-149":{"id":149,"type":"StaticText","parentId":148,"style":{"enabled":true,"varName":"lblTifEncoding","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Image Compression","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-150":{"id":150,"type":"DropDownList","parentId":148,"style":{"enabled":true,"varName":"ddTifEncoding","text":"DropDownList","listItems":"None,LZW,ZIP,JPG","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-151":{"id":151,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabPdf","text":"PDF","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-152":{"id":152,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfEncoding","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-153":{"id":153,"type":"StaticText","parentId":152,"style":{"enabled":true,"varName":"lblPdfEncoding","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Compression","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-154":{"id":154,"type":"DropDownList","parentId":152,"style":{"enabled":true,"varName":"ddPdfEncoding","text":"DropDownList","listItems":"None, ZIP, JPEG","preferredSize":[0,0],"alignment":null,"selection":2,"helpTip":null}},"item-155":{"id":155,"type":"Group","parentId":152,"style":{"enabled":true,"varName":"grpPdfQuality","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-156":{"id":156,"type":"StaticText","parentId":155,"style":{"enabled":true,"varName":"lblPdfQuality","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Quality","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-157":{"id":157,"type":"Slider","parentId":155,"style":{"enabled":true,"varName":"sldrPdfQuality","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-158":{"id":158,"type":"StaticText","parentId":155,"style":{"enabled":true,"varName":"lblPdfQualityValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-159":{"id":159,"type":"Checkbox","parentId":151,"style":{"enabled":true,"varName":"cbPdfWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-160":{"id":160,"type":"Checkbox","parentId":151,"style":{"enabled":true,"varName":"cbPdfIcc","text":"ICC Profile","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-161":{"id":161,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfStandard","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-162":{"id":162,"type":"StaticText","parentId":161,"style":{"enabled":true,"varName":"lblPdfStandard","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Standard","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-163":{"id":163,"type":"DropDownList","parentId":161,"style":{"enabled":true,"varName":"ddPdfStandard","text":"DropDownList","listItems":"None, PDF/X-1a:2001, PDF/X-1a:2003, PDF/X-3:2002, PDF/X-3:2003, PDF/X-4:2010","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-164":{"id":164,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfColorConversion","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-165":{"id":165,"type":"StaticText","parentId":161,"style":{"enabled":true,"varName":"lblPdfCompatibility","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Compatibility","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-166":{"id":166,"type":"DropDownList","parentId":161,"style":{"enabled":true,"varName":"ddPdfCompatibility","text":"DropDownList","listItems":"Acrobat 4 (PDF 1.3), Acrobat 5 (PDF 1.4), Acrobat 6 (PDF 1.5), Acrobat 7 (PDF 1.6), Acrobat 8 (PDF 1.7)","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-167":{"id":167,"type":"DropDownList","parentId":178,"style":{"enabled":true,"varName":"ddPdfDestinationProfile","text":"DropDownList","listItems":"Japan Color 2001 Coated,Japan Color 2001 Uncoated,Japan Color 2002 Newspaper,Japan Color 2003 Web Coated,Japan Web Coated (Ad),U.S. Sheetfed Coated v2,U.S. Sheetfed Uncoated v2,U.S. Web Coated (SWOP) v2,U.S. Web Uncoated v2,-,sRGB IEC61966-2.1,Adobe RGB (1998),Apple RGB,ColorMatch RGBimage P3,ProPhoto RGB,Rec.601 NTSC Gamma 2.4,Rec.601 PAL Gamma 2.4,Rec.709 Gamma 2.4","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-168":{"id":168,"type":"StaticText","parentId":178,"style":{"enabled":true,"varName":"lblPdfDestinationProfile","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Destination","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-170":{"id":170,"type":"Checkbox","parentId":164,"style":{"enabled":true,"varName":"cbPdfColorConversion","text":"Color Conversion","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-171":{"id":171,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfDownSample","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-172":{"id":172,"type":"DropDownList","parentId":171,"style":{"enabled":true,"varName":"ddPdfDownSample","text":"DropDownList","listItems":"Do Not Downsample,Average Downsampling To,Subsampling To,Bicubic Downsampling To","preferredSize":[0,0],"alignment":null,"selection":3,"helpTip":null}},"item-173":{"id":173,"type":"EditText","parentId":179,"style":{"enabled":true,"varName":"txtPdfDownSampleSize","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"300","justify":"left","preferredSize":[40,0],"alignment":null,"helpTip":null}},"item-174":{"id":174,"type":"StaticText","parentId":179,"style":{"enabled":true,"varName":"lblPdfDownSampleSize","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"PPI","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-175":{"id":175,"type":"StaticText","parentId":179,"style":{"enabled":true,"varName":"lblPdfDownSampleSizeLimit","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"For Images Above","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-176":{"id":176,"type":"EditText","parentId":179,"style":{"enabled":true,"varName":"txtPdfDownSampleSizeLimit","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"450","justify":"left","preferredSize":[40,0],"alignment":null,"helpTip":null}},"item-177":{"id":177,"type":"StaticText","parentId":179,"style":{"enabled":true,"varName":"lblPdfDownSampleSizeLimit2","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"PPI","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-178":{"id":178,"type":"Group","parentId":164,"style":{"enabled":true,"varName":"grpPdfDestinationProfile","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-179":{"id":179,"type":"Group","parentId":171,"style":{"enabled":true,"varName":"grpPdfDownSampleSize","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-180":{"id":180,"type":"Checkbox","parentId":82,"style":{"enabled":true,"varName":"cbSilent","text":"Run Silently","preferredSize":[0,0],"alignment":"center","helpTip":"If checked, will run without a progress bar and success confirmation."}},"item-181":{"id":181,"type":"Checkbox","parentId":137,"style":{"enabled":true,"varName":"cbTifTransparency","text":"Transparency","preferredSize":[0,0],"alignment":null,"helpTip":null}}},"order":[0,78,84,10,11,12,1,2,3,4,5,6,9,7,8,13,14,122,15,121,22,21,20,77,53,52,54,23,24,26,25,85,82,79,120,80,81,83,180,47,76,48,49,50,55,75,56,57,58,60,68,59,69,70,73,71,72,62,64,67,65,66,39,30,32,42,41,40,44,45,31,99,100,101,102,103,104,105,106,107,124,108,109,111,112,113,115,114,123,116,119,117,118,110,33,88,87,86,96,90,91,92,93,95,94,137,148,149,150,138,139,140,141,146,145,181,151,161,162,163,165,166,164,170,178,168,167,171,172,179,173,174,175,176,177,152,153,154,155,156,157,158,159,160,37,125,126,127,128,129,38,130,131,132,133,134,135,136,97,98],"settings":{"importJSON":true,"indentSize":false,"cepExport":false,"includeCSSJS":true,"showDialog":true,"functionWrapper":false,"afterEffectsDockable":false,"itemReferenceList":"None"},"activeId":32} +{"items":{"item-0":{"id":0,"type":"Dialog","parentId":false,"style":{"enabled":true,"varName":null,"windowType":"Dialog","creationProps":{"su1PanelCoordinates":false,"maximizeButton":false,"minimizeButton":false,"independent":false,"closeButton":false,"borderless":false,"resizeable":true},"text":"Export Layers To Files v2.7.1","preferredSize":[0,0],"margins":[10,10,5,10],"orientation":"column","spacing":5,"alignChildren":["center","center"]}},"item-1":{"id":1,"type":"Panel","parentId":84,"style":{"enabled":true,"varName":"pnlExport","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Export","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":11,"alignChildren":["left","top"],"alignment":"fill"}},"item-2":{"id":2,"type":"Group","parentId":1,"style":{"enabled":true,"varName":"grpExport","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-3":{"id":3,"type":"RadioButton","parentId":2,"style":{"enabled":true,"varName":"radioAll","text":"All Layers","preferredSize":[0,0],"alignment":null,"helpTip":"Exports all layers","checked":true}},"item-4":{"id":4,"type":"RadioButton","parentId":2,"style":{"enabled":true,"varName":"radioSelected","text":"Selected Group","preferredSize":[0,0],"alignment":null,"helpTip":"Only exports selected group. Must select a group to be enabled.","checked":false}},"item-5":{"id":5,"type":"Group","parentId":1,"style":{"enabled":true,"varName":"grpIgnore","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":5,"alignChildren":["left","center"],"alignment":null}},"item-6":{"id":6,"type":"Checkbox","parentId":5,"style":{"enabled":true,"varName":"cbVisibleOnly","text":"Visible Only","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to export only visible layers"}},"item-7":{"id":7,"type":"Checkbox","parentId":9,"style":{"enabled":true,"varName":"cbIgnoreModeEnabled","text":"","preferredSize":[0,0],"alignment":null,"helpTip":"Enable layer selection by prefix","checked":true}},"item-8":{"id":8,"type":"EditText","parentId":9,"style":{"enabled":true,"varName":"txtIgnoreModePrefix","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"!","justify":"left","preferredSize":[31,0],"alignment":null,"helpTip":"The prefix to match against"}},"item-9":{"id":9,"type":"Group","parentId":5,"style":{"enabled":true,"varName":"grpIgnoreModePrefix","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-10":{"id":10,"type":"Panel","parentId":84,"style":{"enabled":true,"varName":"pnlDestination","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Output Destination","preferredSize":[0,0],"margins":10,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":"left"}},"item-11":{"id":11,"type":"EditText","parentId":10,"style":{"enabled":true,"varName":"txtDestination","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[200,0],"alignment":null,"helpTip":"Where to save the files"}},"item-12":{"id":12,"type":"Button","parentId":10,"style":{"enabled":true,"varName":"btnBrowse","text":"Browse...","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-13":{"id":13,"type":"Panel","parentId":84,"style":{"enabled":true,"varName":"pnlNameFiles","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Filenames","preferredSize":[0,0],"margins":[10,10,10,10],"orientation":"column","spacing":4,"alignChildren":["left","top"],"alignment":"fill"}},"item-14":{"id":14,"type":"DropDownList","parentId":13,"style":{"enabled":true,"varName":"ddNameAs","text":"DropDownList","listItems":"Use layer name (strip extension), Use layer name (keep extension), Use layer and parent group names, Use index descending, Use index ascending","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-15":{"id":15,"type":"Checkbox","parentId":122,"style":{"enabled":true,"varName":"cbDelimiter","text":"Use Custom Delimiter","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to use a custom delimiter between words"}},"item-20":{"id":20,"type":"DropDownList","parentId":22,"style":{"enabled":true,"varName":"ddLetterCasing","text":"DropDownList","listItems":"Keep, Lowercase,Uppercase","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-21":{"id":21,"type":"StaticText","parentId":22,"style":{"enabled":true,"varName":"lblLetterCasing","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Letter Casing","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-22":{"id":22,"type":"Group","parentId":13,"style":{"enabled":true,"varName":"grpCasing","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-23":{"id":23,"type":"Group","parentId":77,"style":{"enabled":true,"varName":"grpPrefixSuffix","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":2,"alignChildren":["left","center"],"alignment":null}},"item-24":{"id":24,"type":"EditText","parentId":23,"style":{"enabled":true,"varName":"txtPrefix","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[100,0],"alignment":null,"helpTip":"Prefix will be added before every layer name"}},"item-25":{"id":25,"type":"EditText","parentId":23,"style":{"enabled":true,"varName":"txtSuffix","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[100,0],"alignment":null,"helpTip":"Suffix will be added after every layer name"}},"item-26":{"id":26,"type":"StaticText","parentId":23,"style":{"enabled":true,"varName":"lblEllipsis","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"...","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-30":{"id":30,"type":"TabbedPanel","parentId":39,"style":{"enabled":true,"varName":"tabpnlExportOptions","preferredSize":[0,0],"margins":10,"alignment":"fill","selection":38}},"item-31":{"id":31,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabPng8","text":"PNG-8","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-32":{"id":32,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabPng24","text":"PNG-24","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-33":{"id":33,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabJpg","text":"JPG","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-37":{"id":37,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabTga","text":"TGA","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-38":{"id":38,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabBmp","text":"BMP","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-39":{"id":39,"type":"Panel","parentId":0,"style":{"enabled":true,"varName":"pnlExportAs","creationProps":{"borderStyle":"none","su1PanelCoordinates":false},"text":"Export As","preferredSize":[0,0],"margins":[6,0,0,0],"orientation":"column","spacing":10,"alignChildren":["center","center"],"alignment":"fill"}},"item-40":{"id":40,"type":"DropDownList","parentId":42,"style":{"enabled":true,"varName":"ddPng24Matte","text":"DropDownList","listItems":"White, Black, Gray, -, Background, Foreground","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-41":{"id":41,"type":"StaticText","parentId":42,"style":{"enabled":true,"varName":"lblPng24Matte","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Matte","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-42":{"id":42,"type":"Group","parentId":32,"style":{"enabled":true,"varName":"grpPng24Matte","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-44":{"id":44,"type":"Checkbox","parentId":32,"style":{"enabled":true,"varName":"cbPng24Transparency","text":"Transparency","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-45":{"id":45,"type":"Checkbox","parentId":32,"style":{"enabled":true,"varName":"cbPng24Interlaced","text":"Interlaced","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-47":{"id":47,"type":"Panel","parentId":85,"style":{"enabled":true,"varName":"pnlOutput","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Output Options","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":10,"alignChildren":["left","top"],"alignment":"fill"}},"item-48":{"id":48,"type":"Checkbox","parentId":76,"style":{"enabled":true,"varName":"cbGroupsAsFolders","text":"Groups as Folders","preferredSize":[0,0],"alignment":null,"helpTip":"Groups and sub-groups are saved as directories."}},"item-49":{"id":49,"type":"Checkbox","parentId":76,"style":{"enabled":true,"varName":"cbTopGroupsAsFolders","text":"Top Groups as Folders","preferredSize":[0,0],"alignment":null,"helpTip":"Groups are saved as directories. Layers in nested groups will be saved in their topmost group."}},"item-50":{"id":50,"type":"Checkbox","parentId":76,"style":{"enabled":true,"varName":"cbTopGroupsAsLayers","text":"Merge Groups as Layers","preferredSize":[0,0],"alignment":null,"helpTip":"Top level groups will merge all their children into a single layer before export"}},"item-52":{"id":52,"type":"StaticText","parentId":53,"style":{"enabled":true,"varName":"lblPrefix","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Prefix","justify":"left","preferredSize":[0,0],"alignment":"center","helpTip":null}},"item-53":{"id":53,"type":"Group","parentId":77,"style":{"enabled":true,"varName":"grpPrefixSuffixLabel","preferredSize":[0,0],"margins":[0,0,0,0],"orientation":"row","spacing":81,"alignChildren":["left","center"],"alignment":null}},"item-54":{"id":54,"type":"StaticText","parentId":53,"style":{"enabled":true,"varName":"lblSuffix","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Suffix","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-55":{"id":55,"type":"Divider","parentId":47,"style":{"enabled":true,"varName":"dvdrOutput"}},"item-56":{"id":56,"type":"Checkbox","parentId":75,"style":{"enabled":true,"varName":"cbForeground","text":"Top Layer as Foreground","preferredSize":[0,0],"alignment":null,"helpTip":"The top layer will be used as a foreground in every export."}},"item-57":{"id":57,"type":"Checkbox","parentId":75,"style":{"enabled":true,"varName":"cbBackground","text":"Bottom Layer as Background","preferredSize":[0,0],"alignment":null,"helpTip":"The bottom layer will be used as a background in every export."}},"item-58":{"id":58,"type":"Panel","parentId":85,"style":{"enabled":true,"varName":"pnlModifyLayers","creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"Modify Layers","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":5,"alignChildren":["left","top"],"alignment":"fill"}},"item-59":{"id":59,"type":"DropDownList","parentId":60,"style":{"enabled":true,"varName":"ddTrim","text":"DropDownList","listItems":"Each Layer, Each Layer (use trim()),Combined","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-60":{"id":60,"type":"Group","parentId":58,"style":{"enabled":true,"varName":"grpTrim","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-62":{"id":62,"type":"Group","parentId":58,"style":{"enabled":true,"varName":"grpScale","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-64":{"id":64,"type":"Checkbox","parentId":62,"style":{"enabled":true,"varName":"cbScale","text":"Scale","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to scale every layer before export"}},"item-65":{"id":65,"type":"EditText","parentId":67,"style":{"enabled":true,"varName":"txtScale","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[36,0],"alignment":null,"helpTip":null}},"item-66":{"id":66,"type":"StaticText","parentId":67,"style":{"enabled":true,"varName":"lblScale","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"%","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-67":{"id":67,"type":"Group","parentId":62,"style":{"enabled":true,"varName":"grpScaleLabel","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":0,"alignChildren":["left","center"],"alignment":null}},"item-68":{"id":68,"type":"Checkbox","parentId":60,"style":{"enabled":true,"varName":"cbTrim","text":"Trim","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to trim before export","checked":false}},"item-69":{"id":69,"type":"Group","parentId":58,"style":{"enabled":true,"varName":"grpPadding","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-70":{"id":70,"type":"Checkbox","parentId":69,"style":{"enabled":true,"varName":"cbPadding","text":"Padding","preferredSize":[0,0],"alignment":null,"helpTip":"Whether to add padding to every layer before export"}},"item-71":{"id":71,"type":"EditText","parentId":73,"style":{"enabled":true,"varName":"txtPadding","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"0","justify":"left","preferredSize":[29,0],"alignment":null,"helpTip":null}},"item-72":{"id":72,"type":"StaticText","parentId":73,"style":{"enabled":true,"varName":"lblPadding","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"px","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-73":{"id":73,"type":"Group","parentId":69,"style":{"enabled":true,"varName":"grpPaddingLabel","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":0,"alignChildren":["left","center"],"alignment":null}},"item-75":{"id":75,"type":"Group","parentId":47,"style":{"enabled":true,"varName":"grpForegroundBackground","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":5,"alignChildren":["left","center"],"alignment":null}},"item-76":{"id":76,"type":"Group","parentId":47,"style":{"enabled":true,"varName":"grpGroupsAs","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":5,"alignChildren":["left","center"],"alignment":null}},"item-77":{"id":77,"type":"Group","parentId":13,"style":{"enabled":true,"varName":"grpPrefixSuffixWrapper","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":0,"alignChildren":["left","center"],"alignment":null}},"item-78":{"id":78,"type":"Group","parentId":0,"style":{"enabled":true,"varName":"grpColContainer","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["center","center"],"alignment":null}},"item-79":{"id":79,"type":"Button","parentId":82,"style":{"enabled":true,"varName":"btnRun","text":"Run","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":"Runs the script with the selected settings"}},"item-80":{"id":80,"type":"Button","parentId":120,"style":{"enabled":true,"varName":"btnCancel","text":"Cancel","justify":"center","preferredSize":[111,0],"alignment":null,"helpTip":"Closes the dialog and does not save any changes"}},"item-81":{"id":81,"type":"Button","parentId":120,"style":{"enabled":true,"varName":"btnSaveAndCancel","text":"Save and Close","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":"Closes the dialog but saves any changes made"}},"item-82":{"id":82,"type":"Group","parentId":85,"style":{"enabled":true,"varName":"grpActions","preferredSize":[0,0],"margins":[0,0,1,0],"orientation":"column","spacing":5,"alignChildren":["fill","top"],"alignment":"fill"}},"item-83":{"id":83,"type":"Checkbox","parentId":82,"style":{"enabled":true,"varName":"cbOverwriteFiles","text":"Overwrite Existing Files","preferredSize":[0,0],"alignment":"center","helpTip":"If checked, will overwrite existing files if they have the same name. Otherwise it will make unique copies"}},"item-84":{"id":84,"type":"Group","parentId":78,"style":{"enabled":true,"varName":"grpCol1","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":17,"alignChildren":["left","center"],"alignment":"top"}},"item-85":{"id":85,"type":"Group","parentId":78,"style":{"enabled":true,"varName":"grpCol2","preferredSize":[0,0],"margins":0,"orientation":"column","spacing":10,"alignChildren":["left","center"],"alignment":"top"}},"item-86":{"id":86,"type":"Slider","parentId":88,"style":{"enabled":true,"varName":"sldrJpgQuality","preferredSize":[200,0],"alignment":null,"helpTip":null}},"item-87":{"id":87,"type":"StaticText","parentId":88,"style":{"enabled":true,"varName":"lblQuality","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Quality","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-88":{"id":88,"type":"Group","parentId":33,"style":{"enabled":true,"varName":"grpJpgQuality","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-90":{"id":90,"type":"Group","parentId":33,"style":{"enabled":true,"varName":"grpJpgMatte","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-91":{"id":91,"type":"StaticText","parentId":90,"style":{"enabled":true,"varName":"lblJpgMatte","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Matte","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-92":{"id":92,"type":"DropDownList","parentId":90,"style":{"enabled":true,"varName":"ddJpgMatte","text":"DropDownList","listItems":"White, Black, Gray, -, Background, Foreground","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-93":{"id":93,"type":"Checkbox","parentId":33,"style":{"enabled":true,"varName":"cbJpgIcc","text":"ICC Profile","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-94":{"id":94,"type":"Checkbox","parentId":33,"style":{"enabled":true,"varName":"cbJpgProgressive","text":"Progressive","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-95":{"id":95,"type":"Checkbox","parentId":33,"style":{"enabled":true,"varName":"cbJpgOptimized","text":"Optimized","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":false}},"item-96":{"id":96,"type":"StaticText","parentId":88,"style":{"enabled":true,"varName":"lblJpgQualityValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-97":{"id":97,"type":"StaticText","parentId":0,"style":{"enabled":true,"varName":"lblMetadata","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"This document contains {0} layer(s), {1} of them visible, {2} selected","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-98":{"id":98,"type":"StaticText","parentId":0,"style":{"enabled":true,"varName":"lblContact","creationProps":{},"softWrap":false,"text":"To get the most recent version, or leave feedback, go to:\nhttps://github.com/antipalindrome/Photoshop-Export-Layers-to-Files-Fast","justify":"center","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-99":{"id":99,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8ColorReduction","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-100":{"id":100,"type":"StaticText","parentId":99,"style":{"enabled":true,"varName":"lblPng8ColorReduction","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Color Reduction","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-101":{"id":101,"type":"DropDownList","parentId":99,"style":{"enabled":true,"varName":"ddPng8ColorReduction","text":"DropDownList","listItems":"Perceptual,Selective, Adaptive,Restrictive (Web),-,Black & White, Grayscale, Mac OS, Windows","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-102":{"id":102,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8NumberOfColors","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-103":{"id":103,"type":"StaticText","parentId":102,"style":{"enabled":true,"varName":"lblNumberOfColors","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Number of Colors","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-104":{"id":104,"type":"EditText","parentId":102,"style":{"enabled":true,"varName":"txtPng8NumberofColors","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"","justify":"left","preferredSize":[36,0],"alignment":null,"helpTip":null}},"item-105":{"id":105,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8Dither","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-106":{"id":106,"type":"StaticText","parentId":105,"style":{"enabled":true,"varName":"lblPng8Dither","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Dither","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-107":{"id":107,"type":"DropDownList","parentId":105,"style":{"enabled":true,"varName":"ddPng8Dither","text":"DropDownList","listItems":"None,Diffusion,Pattern,Noise","preferredSize":[0,0],"alignment":null,"selection":1,"helpTip":null}},"item-108":{"id":108,"type":"Slider","parentId":124,"style":{"enabled":true,"varName":"sldrPng8Dither","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-109":{"id":109,"type":"StaticText","parentId":124,"style":{"enabled":true,"varName":"lblPng8DitherValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100%","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-110":{"id":110,"type":"Checkbox","parentId":31,"style":{"enabled":true,"varName":"cbPng8Interlaced","text":"Interlaced","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-111":{"id":111,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8Matte","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-112":{"id":112,"type":"StaticText","parentId":111,"style":{"enabled":true,"varName":"lblPng8Matte","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Matte","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-113":{"id":113,"type":"DropDownList","parentId":111,"style":{"enabled":true,"varName":"ddPng8Matte","text":"DropDownList","listItems":"White, Black, Gray, -, Background, Foreground","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-114":{"id":114,"type":"Checkbox","parentId":115,"style":{"enabled":true,"varName":"cbPng8Transparency","text":"Transparency","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":false}},"item-115":{"id":115,"type":"Group","parentId":31,"style":{"enabled":true,"varName":"grpPng8Transparency","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-116":{"id":116,"type":"StaticText","parentId":123,"style":{"enabled":true,"varName":"lblPng8TransparencyDither","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Transparency Dither","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-117":{"id":117,"type":"Slider","parentId":123,"style":{"enabled":true,"varName":"sldrPng8TransparencyDither","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-118":{"id":118,"type":"StaticText","parentId":123,"style":{"enabled":true,"varName":"lblPng8TransparencyDitherValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100%","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-119":{"id":119,"type":"DropDownList","parentId":123,"style":{"enabled":true,"varName":"ddPng8TransparencyDither","text":"DropDownList","listItems":"None,Diffusion,Pattern,Noise","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-120":{"id":120,"type":"Group","parentId":82,"style":{"enabled":true,"varName":"grpCloseButtons","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["center","top"],"alignment":null}},"item-121":{"id":121,"type":"EditText","parentId":122,"style":{"enabled":true,"varName":"txtDelimiter","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"_","justify":"left","preferredSize":[22,0],"alignment":null,"helpTip":"The delimiter to use between words"}},"item-122":{"id":122,"type":"Group","parentId":13,"style":{"enabled":true,"varName":"grpDelimiter","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-123":{"id":123,"type":"Group","parentId":115,"style":{"enabled":false,"varName":"grpPng8TransparencyDither","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-124":{"id":124,"type":"Group","parentId":105,"style":{"enabled":false,"varName":"grpPng8DitherSlider","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-125":{"id":125,"type":"Group","parentId":37,"style":{"enabled":true,"varName":"grpTgaDepth","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-126":{"id":126,"type":"StaticText","parentId":125,"style":{"enabled":true,"varName":"lblTgaDepth","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Depth","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-127":{"id":127,"type":"DropDownList","parentId":125,"style":{"enabled":true,"varName":"ddTgaDepth","text":"DropDownList","listItems":"16 bit,24 bit, 36 bit","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-128":{"id":128,"type":"Checkbox","parentId":37,"style":{"enabled":true,"varName":"cbTgaWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-129":{"id":129,"type":"Checkbox","parentId":37,"style":{"enabled":true,"varName":"cbTgaRleCompression","text":"RLE Compression","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-130":{"id":130,"type":"Group","parentId":38,"style":{"enabled":true,"varName":"grpBmpDepth","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-131":{"id":131,"type":"StaticText","parentId":130,"style":{"enabled":true,"varName":"lblBmpDepth","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Depth","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-132":{"id":132,"type":"DropDownList","parentId":130,"style":{"enabled":true,"varName":"ddBmpDepth","text":"DropDownList","listItems":"24 bit, 32 bit, RGB 565 (16 bit),ARGB 1555 (16 bit),ARGB 4444 (16 bit)","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-133":{"id":133,"type":"Checkbox","parentId":38,"style":{"enabled":true,"varName":"cbBmpWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-134":{"id":134,"type":"Checkbox","parentId":38,"style":{"enabled":true,"varName":"cbBmpRleCompression","text":"RLE Compression","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-135":{"id":135,"type":"Checkbox","parentId":38,"style":{"enabled":true,"varName":"cbBmpFlipRowOrder","text":"Flip Row Order","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-136":{"id":136,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"PSD","text":"PSD","orientation":"column","spacing":10,"alignChildren":["left","top"]}},"item-137":{"id":137,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabTif","text":"TIFF","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-138":{"id":138,"type":"Group","parentId":148,"style":{"enabled":true,"varName":"grpTifQuality","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-139":{"id":139,"type":"StaticText","parentId":138,"style":{"enabled":true,"varName":"lblTifQuality","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Quality","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-140":{"id":140,"type":"Slider","parentId":138,"style":{"enabled":true,"varName":"sldrTifQuality","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-141":{"id":141,"type":"StaticText","parentId":138,"style":{"enabled":true,"varName":"lblTifQualityValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-145":{"id":145,"type":"Checkbox","parentId":137,"style":{"enabled":true,"varName":"cbTifIcc","text":"ICC Profile","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-146":{"id":146,"type":"Checkbox","parentId":137,"style":{"enabled":true,"varName":"cbTifWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-148":{"id":148,"type":"Group","parentId":137,"style":{"enabled":true,"varName":"grpTifEncoding","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-149":{"id":149,"type":"StaticText","parentId":148,"style":{"enabled":true,"varName":"lblTifEncoding","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Image Compression","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-150":{"id":150,"type":"DropDownList","parentId":148,"style":{"enabled":true,"varName":"ddTifEncoding","text":"DropDownList","listItems":"None,LZW,ZIP,JPG","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-151":{"id":151,"type":"Tab","parentId":30,"style":{"enabled":true,"varName":"tabPdf","text":"PDF","orientation":"column","spacing":5,"alignChildren":["left","top"]},"collapsed":true},"item-152":{"id":152,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfEncoding","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-153":{"id":153,"type":"StaticText","parentId":152,"style":{"enabled":true,"varName":"lblPdfEncoding","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Compression","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-154":{"id":154,"type":"DropDownList","parentId":152,"style":{"enabled":true,"varName":"ddPdfEncoding","text":"DropDownList","listItems":"None, ZIP, JPEG","preferredSize":[0,0],"alignment":null,"selection":2,"helpTip":null}},"item-155":{"id":155,"type":"Group","parentId":152,"style":{"enabled":true,"varName":"grpPdfQuality","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-156":{"id":156,"type":"StaticText","parentId":155,"style":{"enabled":true,"varName":"lblPdfQuality","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Quality","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-157":{"id":157,"type":"Slider","parentId":155,"style":{"enabled":true,"varName":"sldrPdfQuality","preferredSize":[100,0],"alignment":null,"helpTip":null}},"item-158":{"id":158,"type":"StaticText","parentId":155,"style":{"enabled":true,"varName":"lblPdfQualityValue","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"100","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-159":{"id":159,"type":"Checkbox","parentId":151,"style":{"enabled":true,"varName":"cbPdfWithAlpha","text":"With Alpha Channel","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-160":{"id":160,"type":"Checkbox","parentId":151,"style":{"enabled":true,"varName":"cbPdfIcc","text":"ICC Profile","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-161":{"id":161,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfStandard","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-162":{"id":162,"type":"StaticText","parentId":161,"style":{"enabled":true,"varName":"lblPdfStandard","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Standard","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-163":{"id":163,"type":"DropDownList","parentId":161,"style":{"enabled":true,"varName":"ddPdfStandard","text":"DropDownList","listItems":"None, PDF/X-1a:2001, PDF/X-1a:2003, PDF/X-3:2002, PDF/X-3:2003, PDF/X-4:2010","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-164":{"id":164,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfColorConversion","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-165":{"id":165,"type":"StaticText","parentId":161,"style":{"enabled":true,"varName":"lblPdfCompatibility","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Compatibility","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-166":{"id":166,"type":"DropDownList","parentId":161,"style":{"enabled":true,"varName":"ddPdfCompatibility","text":"DropDownList","listItems":"Acrobat 4 (PDF 1.3), Acrobat 5 (PDF 1.4), Acrobat 6 (PDF 1.5), Acrobat 7 (PDF 1.6), Acrobat 8 (PDF 1.7)","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-167":{"id":167,"type":"DropDownList","parentId":178,"style":{"enabled":true,"varName":"ddPdfDestinationProfile","text":"DropDownList","listItems":"Japan Color 2001 Coated,Japan Color 2001 Uncoated,Japan Color 2002 Newspaper,Japan Color 2003 Web Coated,Japan Web Coated (Ad),U.S. Sheetfed Coated v2,U.S. Sheetfed Uncoated v2,U.S. Web Coated (SWOP) v2,U.S. Web Uncoated v2,-,sRGB IEC61966-2.1,Adobe RGB (1998),Apple RGB,ColorMatch RGBimage P3,ProPhoto RGB,Rec.601 NTSC Gamma 2.4,Rec.601 PAL Gamma 2.4,Rec.709 Gamma 2.4","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":null}},"item-168":{"id":168,"type":"StaticText","parentId":178,"style":{"enabled":true,"varName":"lblPdfDestinationProfile","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Destination","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-170":{"id":170,"type":"Checkbox","parentId":164,"style":{"enabled":true,"varName":"cbPdfColorConversion","text":"Color Conversion","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-171":{"id":171,"type":"Group","parentId":151,"style":{"enabled":true,"varName":"grpPdfDownSample","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-172":{"id":172,"type":"DropDownList","parentId":171,"style":{"enabled":true,"varName":"ddPdfDownSample","text":"DropDownList","listItems":"Do Not Downsample,Average Downsampling To,Subsampling To,Bicubic Downsampling To","preferredSize":[0,0],"alignment":null,"selection":3,"helpTip":null}},"item-173":{"id":173,"type":"EditText","parentId":179,"style":{"enabled":true,"varName":"txtPdfDownSampleSize","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"300","justify":"left","preferredSize":[40,0],"alignment":null,"helpTip":null}},"item-174":{"id":174,"type":"StaticText","parentId":179,"style":{"enabled":true,"varName":"lblPdfDownSampleSize","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"PPI","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-175":{"id":175,"type":"StaticText","parentId":179,"style":{"enabled":true,"varName":"lblPdfDownSampleSizeLimit","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"For Images Above","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-176":{"id":176,"type":"EditText","parentId":179,"style":{"enabled":true,"varName":"txtPdfDownSampleSizeLimit","creationProps":{"noecho":false,"readonly":false,"multiline":false,"scrollable":false,"borderless":false,"enterKeySignalsOnChange":false},"softWrap":false,"text":"450","justify":"left","preferredSize":[40,0],"alignment":null,"helpTip":null}},"item-177":{"id":177,"type":"StaticText","parentId":179,"style":{"enabled":true,"varName":"lblPdfDownSampleSizeLimit2","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"PPI","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-178":{"id":178,"type":"Group","parentId":164,"style":{"enabled":true,"varName":"grpPdfDestinationProfile","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-179":{"id":179,"type":"Group","parentId":171,"style":{"enabled":true,"varName":"grpPdfDownSampleSize","preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-180":{"id":180,"type":"Checkbox","parentId":82,"style":{"enabled":true,"varName":"cbSilent","text":"Run Silently","preferredSize":[0,0],"alignment":"center","helpTip":"If checked, will run without a progress bar and success confirmation."}},"item-181":{"id":181,"type":"Checkbox","parentId":137,"style":{"enabled":true,"varName":"cbTifTransparency","text":"Transparency","preferredSize":[0,0],"alignment":null,"helpTip":null}},"item-182":{"id":182,"type":"DropDownList","parentId":9,"style":{"enabled":true,"varName":"ddIgnoreModeSelection","text":"DropDownList","listItems":"Ignore, Only","preferredSize":[0,0],"alignment":null,"selection":0,"helpTip":"Choose whether to ignore or select only layers with prefix"}},"item-183":{"id":183,"type":"StaticText","parentId":9,"style":{"enabled":true,"varName":"lblIgnoreModeSelection","creationProps":{"truncate":"none","multiline":false,"scrolling":false},"softWrap":false,"text":"Layers Starting With","justify":"left","preferredSize":[0,0],"alignment":null,"helpTip":null}}},"order":[0,78,84,10,11,12,1,2,3,4,5,6,9,7,182,183,8,13,14,122,15,121,22,21,20,77,53,52,54,23,24,26,25,85,82,79,120,80,81,83,180,47,76,48,49,50,55,75,56,57,58,60,68,59,69,70,73,71,72,62,64,67,65,66,39,30,32,42,41,40,44,45,31,99,100,101,102,103,104,105,106,107,124,108,109,111,112,113,115,114,123,116,119,117,118,110,33,88,87,86,96,90,91,92,93,95,94,137,148,149,150,138,139,140,141,146,145,181,151,161,162,163,165,166,164,170,178,168,167,171,172,179,173,174,175,176,177,152,153,154,155,156,157,158,159,160,37,125,126,127,128,129,38,130,131,132,133,134,135,136,97,98],"settings":{"importJSON":true,"indentSize":false,"cepExport":false,"includeCSSJS":true,"showDialog":true,"functionWrapper":false,"afterEffectsDockable":false,"itemReferenceList":"None"},"activeId":8} */ diff --git a/dialog.js b/dialog.js new file mode 100644 index 0000000..d287846 --- /dev/null +++ b/dialog.js @@ -0,0 +1,1383 @@ +// DIALOG +// ====== +var dialog = new Window('dialog', undefined, undefined, { + closeButton: false, + resizeable: true, +}); +dialog.text = 'Export Layers To Files v2.7.1'; +dialog.orientation = 'column'; +dialog.alignChildren = ['center', 'center']; +dialog.spacing = 5; +dialog.margins = [10, 10, 10, 5]; + +// GRPCOLCONTAINER +// =============== +var grpColContainer = dialog.add('group', undefined, { + name: 'grpColContainer', +}); +grpColContainer.orientation = 'row'; +grpColContainer.alignChildren = ['center', 'center']; +grpColContainer.spacing = 10; +grpColContainer.margins = 0; + +// GRPCOL1 +// ======= +var grpCol1 = grpColContainer.add('group', undefined, { name: 'grpCol1' }); +grpCol1.orientation = 'column'; +grpCol1.alignChildren = ['left', 'center']; +grpCol1.spacing = 17; +grpCol1.margins = 0; +grpCol1.alignment = ['center', 'top']; + +// PNLDESTINATION +// ============== +var pnlDestination = grpCol1.add('panel', undefined, undefined, { + name: 'pnlDestination', +}); +pnlDestination.text = 'Output Destination'; +pnlDestination.orientation = 'row'; +pnlDestination.alignChildren = ['left', 'center']; +pnlDestination.spacing = 10; +pnlDestination.margins = 10; +pnlDestination.alignment = ['left', 'center']; + +var txtDestination = pnlDestination.add( + 'edittext {properties: {name: "txtDestination"}}' +); +txtDestination.helpTip = 'Where to save the files'; +txtDestination.preferredSize.width = 200; + +var btnBrowse = pnlDestination.add('button', undefined, undefined, { + name: 'btnBrowse', +}); +btnBrowse.text = 'Browse...'; +btnBrowse.justify = 'left'; + +// PNLEXPORT +// ========= +var pnlExport = grpCol1.add('panel', undefined, undefined, { + name: 'pnlExport', +}); +pnlExport.text = 'Export'; +pnlExport.orientation = 'column'; +pnlExport.alignChildren = ['left', 'top']; +pnlExport.spacing = 11; +pnlExport.margins = 10; +pnlExport.alignment = ['fill', 'center']; + +// GRPEXPORT +// ========= +var grpExport = pnlExport.add('group', undefined, { name: 'grpExport' }); +grpExport.orientation = 'row'; +grpExport.alignChildren = ['left', 'center']; +grpExport.spacing = 10; +grpExport.margins = 0; + +var radioAll = grpExport.add('radiobutton', undefined, undefined, { + name: 'radioAll', +}); +radioAll.helpTip = 'Exports all layers'; +radioAll.text = 'All Layers'; +radioAll.value = true; + +var radioSelected = grpExport.add('radiobutton', undefined, undefined, { + name: 'radioSelected', +}); +radioSelected.helpTip = + 'Only exports selected group. Must select a group to be enabled.'; +radioSelected.text = 'Selected Group'; + +// GRPIGNORE +// ========= +var grpIgnore = pnlExport.add('group', undefined, { name: 'grpIgnore' }); +grpIgnore.orientation = 'column'; +grpIgnore.alignChildren = ['left', 'center']; +grpIgnore.spacing = 5; +grpIgnore.margins = 0; + +var cbVisibleOnly = grpIgnore.add('checkbox', undefined, undefined, { + name: 'cbVisibleOnly', +}); +cbVisibleOnly.helpTip = 'Whether to export only visible layers'; +cbVisibleOnly.text = 'Visible Only'; + +// GRPIGNOREORONLYPREFIX +// ===================== +var grpIgnoreOrOnlyPrefix = grpIgnore.add('group', undefined, { + name: 'grpIgnoreOrOnlyPrefix', +}); +grpIgnoreOrOnlyPrefix.orientation = 'row'; +grpIgnoreOrOnlyPrefix.alignChildren = ['left', 'center']; +grpIgnoreOrOnlyPrefix.spacing = 10; +grpIgnoreOrOnlyPrefix.margins = 0; + +var cbIgnoreOrOnlyLayersSelectionEnabled = grpIgnoreOrOnlyPrefix.add( + 'checkbox', + undefined, + undefined, + { name: 'cbIgnoreOrOnlyLayersSelectionEnabled' } +); +cbIgnoreOrOnlyLayersSelectionEnabled.helpTip = + 'Ignore/Only layers starting with'; + +var ddIgnoreOrOnlyLayersSelection_array = ['Ignore', 'Only']; +var ddIgnoreOrOnlyLayersSelection = grpIgnoreOrOnlyPrefix.add( + 'dropdownlist', + undefined, + undefined, + { + name: 'ddIgnoreOrOnlyLayersSelection', + items: ddIgnoreOrOnlyLayersSelection_array, + } +); +ddIgnoreOrOnlyLayersSelection.selection = 0; + +var lblIgnoreOrOnlyLayerSelection = grpIgnoreOrOnlyPrefix.add( + 'statictext', + undefined, + undefined, + { name: 'lblIgnoreOrOnlyLayerSelection' } +); +lblIgnoreOrOnlyLayerSelection.text = 'Layers Starting With'; + +var txtIgnoreOrOnlyPrefix = grpIgnoreOrOnlyPrefix.add( + 'edittext {properties: {name: "txtIgnoreOrOnlyPrefix"}}' +); +txtIgnoreOrOnlyPrefix.helpTip = 'The prefix to match against'; +txtIgnoreOrOnlyPrefix.text = '!'; +txtIgnoreOrOnlyPrefix.preferredSize.width = 31; + +// PNLNAMEFILES +// ============ +var pnlNameFiles = grpCol1.add('panel', undefined, undefined, { + name: 'pnlNameFiles', +}); +pnlNameFiles.text = 'Filenames'; +pnlNameFiles.orientation = 'column'; +pnlNameFiles.alignChildren = ['left', 'top']; +pnlNameFiles.spacing = 4; +pnlNameFiles.margins = [10, 10, 10, 10]; +pnlNameFiles.alignment = ['fill', 'center']; + +var ddNameAs_array = [ + 'Use layer name (strip extension)', + 'Use layer name (keep extension)', + 'Use layer and parent group names', + 'Use index descending', + 'Use index ascending', +]; +var ddNameAs = pnlNameFiles.add('dropdownlist', undefined, undefined, { + name: 'ddNameAs', + items: ddNameAs_array, +}); +ddNameAs.selection = 0; + +// GRPDELIMITER +// ============ +var grpDelimiter = pnlNameFiles.add('group', undefined, { + name: 'grpDelimiter', +}); +grpDelimiter.orientation = 'row'; +grpDelimiter.alignChildren = ['left', 'center']; +grpDelimiter.spacing = 10; +grpDelimiter.margins = 0; + +var cbDelimiter = grpDelimiter.add('checkbox', undefined, undefined, { + name: 'cbDelimiter', +}); +cbDelimiter.helpTip = 'Whether to use a custom delimiter between words'; +cbDelimiter.text = 'Use Custom Delimiter'; + +var txtDelimiter = grpDelimiter.add( + 'edittext {properties: {name: "txtDelimiter"}}' +); +txtDelimiter.helpTip = 'The delimiter to use between words'; +txtDelimiter.text = '_'; +txtDelimiter.preferredSize.width = 22; + +// GRPCASING +// ========= +var grpCasing = pnlNameFiles.add('group', undefined, { name: 'grpCasing' }); +grpCasing.orientation = 'row'; +grpCasing.alignChildren = ['left', 'center']; +grpCasing.spacing = 10; +grpCasing.margins = 0; + +var lblLetterCasing = grpCasing.add('statictext', undefined, undefined, { + name: 'lblLetterCasing', +}); +lblLetterCasing.text = 'Letter Casing'; + +var ddLetterCasing_array = ['Keep', 'Lowercase', 'Uppercase']; +var ddLetterCasing = grpCasing.add('dropdownlist', undefined, undefined, { + name: 'ddLetterCasing', + items: ddLetterCasing_array, +}); +ddLetterCasing.selection = 0; + +// GRPPREFIXSUFFIXWRAPPER +// ====================== +var grpPrefixSuffixWrapper = pnlNameFiles.add('group', undefined, { + name: 'grpPrefixSuffixWrapper', +}); +grpPrefixSuffixWrapper.orientation = 'column'; +grpPrefixSuffixWrapper.alignChildren = ['left', 'center']; +grpPrefixSuffixWrapper.spacing = 0; +grpPrefixSuffixWrapper.margins = 0; + +// GRPPREFIXSUFFIXLABEL +// ==================== +var grpPrefixSuffixLabel = grpPrefixSuffixWrapper.add('group', undefined, { + name: 'grpPrefixSuffixLabel', +}); +grpPrefixSuffixLabel.orientation = 'row'; +grpPrefixSuffixLabel.alignChildren = ['left', 'center']; +grpPrefixSuffixLabel.spacing = 81; +grpPrefixSuffixLabel.margins = [0, 0, 0, 0]; + +var lblPrefix = grpPrefixSuffixLabel.add('statictext', undefined, undefined, { + name: 'lblPrefix', +}); +lblPrefix.text = 'Prefix'; +lblPrefix.alignment = ['left', 'center']; + +var lblSuffix = grpPrefixSuffixLabel.add('statictext', undefined, undefined, { + name: 'lblSuffix', +}); +lblSuffix.text = 'Suffix'; + +// GRPPREFIXSUFFIX +// =============== +var grpPrefixSuffix = grpPrefixSuffixWrapper.add('group', undefined, { + name: 'grpPrefixSuffix', +}); +grpPrefixSuffix.orientation = 'row'; +grpPrefixSuffix.alignChildren = ['left', 'center']; +grpPrefixSuffix.spacing = 2; +grpPrefixSuffix.margins = 0; + +var txtPrefix = grpPrefixSuffix.add( + 'edittext {properties: {name: "txtPrefix"}}' +); +txtPrefix.helpTip = 'Prefix will be added before every layer name'; +txtPrefix.preferredSize.width = 100; + +var lblEllipsis = grpPrefixSuffix.add('statictext', undefined, undefined, { + name: 'lblEllipsis', +}); +lblEllipsis.text = '...'; + +var txtSuffix = grpPrefixSuffix.add( + 'edittext {properties: {name: "txtSuffix"}}' +); +txtSuffix.helpTip = 'Suffix will be added after every layer name'; +txtSuffix.preferredSize.width = 100; + +// GRPCOL2 +// ======= +var grpCol2 = grpColContainer.add('group', undefined, { name: 'grpCol2' }); +grpCol2.orientation = 'column'; +grpCol2.alignChildren = ['left', 'center']; +grpCol2.spacing = 10; +grpCol2.margins = 0; +grpCol2.alignment = ['center', 'top']; + +// GRPACTIONS +// ========== +var grpActions = grpCol2.add('group', undefined, { name: 'grpActions' }); +grpActions.orientation = 'column'; +grpActions.alignChildren = ['fill', 'top']; +grpActions.spacing = 5; +grpActions.margins = [0, 0, 0, 1]; +grpActions.alignment = ['fill', 'center']; + +var btnRun = grpActions.add('button', undefined, undefined, { name: 'btnRun' }); +btnRun.helpTip = 'Runs the script with the selected settings'; +btnRun.text = 'Run'; + +// GRPCLOSEBUTTONS +// =============== +var grpCloseButtons = grpActions.add('group', undefined, { + name: 'grpCloseButtons', +}); +grpCloseButtons.orientation = 'row'; +grpCloseButtons.alignChildren = ['center', 'top']; +grpCloseButtons.spacing = 10; +grpCloseButtons.margins = 0; + +var btnCancel = grpCloseButtons.add('button', undefined, undefined, { + name: 'btnCancel', +}); +btnCancel.helpTip = 'Closes the dialog and does not save any changes'; +btnCancel.text = 'Cancel'; +btnCancel.preferredSize.width = 111; + +var btnSaveAndCancel = grpCloseButtons.add('button', undefined, undefined, { + name: 'btnSaveAndCancel', +}); +btnSaveAndCancel.helpTip = 'Closes the dialog but saves any changes made'; +btnSaveAndCancel.text = 'Save and Close'; + +// GRPACTIONS +// ========== +var cbOverwriteFiles = grpActions.add('checkbox', undefined, undefined, { + name: 'cbOverwriteFiles', +}); +cbOverwriteFiles.helpTip = + 'If checked, will overwrite existing files if they have the same name. Otherwise it will make unique copies'; +cbOverwriteFiles.text = 'Overwrite Existing Files'; +cbOverwriteFiles.alignment = ['center', 'top']; + +var cbSilent = grpActions.add('checkbox', undefined, undefined, { + name: 'cbSilent', +}); +cbSilent.helpTip = + 'If checked, will run without a progress bar and success confirmation.'; +cbSilent.text = 'Run Silently'; +cbSilent.alignment = ['center', 'top']; + +// PNLOUTPUT +// ========= +var pnlOutput = grpCol2.add('panel', undefined, undefined, { + name: 'pnlOutput', +}); +pnlOutput.text = 'Output Options'; +pnlOutput.orientation = 'column'; +pnlOutput.alignChildren = ['left', 'top']; +pnlOutput.spacing = 10; +pnlOutput.margins = 10; +pnlOutput.alignment = ['fill', 'center']; + +// GRPGROUPSAS +// =========== +var grpGroupsAs = pnlOutput.add('group', undefined, { name: 'grpGroupsAs' }); +grpGroupsAs.orientation = 'column'; +grpGroupsAs.alignChildren = ['left', 'center']; +grpGroupsAs.spacing = 5; +grpGroupsAs.margins = 0; + +var cbGroupsAsFolders = grpGroupsAs.add('checkbox', undefined, undefined, { + name: 'cbGroupsAsFolders', +}); +cbGroupsAsFolders.helpTip = 'Groups and sub-groups are saved as directories.'; +cbGroupsAsFolders.text = 'Groups as Folders'; + +var cbTopGroupsAsFolders = grpGroupsAs.add('checkbox', undefined, undefined, { + name: 'cbTopGroupsAsFolders', +}); +cbTopGroupsAsFolders.helpTip = + 'Groups are saved as directories. Layers in nested groups will be saved in their topmost group.'; +cbTopGroupsAsFolders.text = 'Top Groups as Folders'; + +var cbTopGroupsAsLayers = grpGroupsAs.add('checkbox', undefined, undefined, { + name: 'cbTopGroupsAsLayers', +}); +cbTopGroupsAsLayers.helpTip = + 'Top level groups will merge all their children into a single layer before export'; +cbTopGroupsAsLayers.text = 'Merge Groups as Layers'; + +// PNLOUTPUT +// ========= +var dvdrOutput = pnlOutput.add('panel', undefined, undefined, { + name: 'dvdrOutput', +}); +dvdrOutput.alignment = 'fill'; + +// GRPFOREGROUNDBACKGROUND +// ======================= +var grpForegroundBackground = pnlOutput.add('group', undefined, { + name: 'grpForegroundBackground', +}); +grpForegroundBackground.orientation = 'column'; +grpForegroundBackground.alignChildren = ['left', 'center']; +grpForegroundBackground.spacing = 5; +grpForegroundBackground.margins = 0; + +var cbForeground = grpForegroundBackground.add( + 'checkbox', + undefined, + undefined, + { name: 'cbForeground' } +); +cbForeground.helpTip = + 'The top layer will be used as a foreground in every export.'; +cbForeground.text = 'Top Layer as Foreground'; + +var cbBackground = grpForegroundBackground.add( + 'checkbox', + undefined, + undefined, + { name: 'cbBackground' } +); +cbBackground.helpTip = + 'The bottom layer will be used as a background in every export.'; +cbBackground.text = 'Bottom Layer as Background'; + +// PNLMODIFYLAYERS +// =============== +var pnlModifyLayers = grpCol2.add('panel', undefined, undefined, { + name: 'pnlModifyLayers', +}); +pnlModifyLayers.text = 'Modify Layers'; +pnlModifyLayers.orientation = 'column'; +pnlModifyLayers.alignChildren = ['left', 'top']; +pnlModifyLayers.spacing = 5; +pnlModifyLayers.margins = 10; +pnlModifyLayers.alignment = ['fill', 'center']; + +// GRPTRIM +// ======= +var grpTrim = pnlModifyLayers.add('group', undefined, { name: 'grpTrim' }); +grpTrim.orientation = 'row'; +grpTrim.alignChildren = ['left', 'center']; +grpTrim.spacing = 10; +grpTrim.margins = 0; + +var cbTrim = grpTrim.add('checkbox', undefined, undefined, { name: 'cbTrim' }); +cbTrim.helpTip = 'Whether to trim before export'; +cbTrim.text = 'Trim'; + +var ddTrim_array = ['Each Layer', 'Each Layer (use trim())', 'Combined']; +var ddTrim = grpTrim.add('dropdownlist', undefined, undefined, { + name: 'ddTrim', + items: ddTrim_array, +}); +ddTrim.selection = 0; + +// GRPPADDING +// ========== +var grpPadding = pnlModifyLayers.add('group', undefined, { + name: 'grpPadding', +}); +grpPadding.orientation = 'row'; +grpPadding.alignChildren = ['left', 'center']; +grpPadding.spacing = 10; +grpPadding.margins = 0; + +var cbPadding = grpPadding.add('checkbox', undefined, undefined, { + name: 'cbPadding', +}); +cbPadding.helpTip = 'Whether to add padding to every layer before export'; +cbPadding.text = 'Padding'; + +// GRPPADDINGLABEL +// =============== +var grpPaddingLabel = grpPadding.add('group', undefined, { + name: 'grpPaddingLabel', +}); +grpPaddingLabel.orientation = 'row'; +grpPaddingLabel.alignChildren = ['left', 'center']; +grpPaddingLabel.spacing = 0; +grpPaddingLabel.margins = 0; + +var txtPadding = grpPaddingLabel.add( + 'edittext {properties: {name: "txtPadding"}}' +); +txtPadding.text = '0'; +txtPadding.preferredSize.width = 29; + +var lblPadding = grpPaddingLabel.add('statictext', undefined, undefined, { + name: 'lblPadding', +}); +lblPadding.text = 'px'; + +// GRPSCALE +// ======== +var grpScale = pnlModifyLayers.add('group', undefined, { name: 'grpScale' }); +grpScale.orientation = 'row'; +grpScale.alignChildren = ['left', 'center']; +grpScale.spacing = 10; +grpScale.margins = 0; + +var cbScale = grpScale.add('checkbox', undefined, undefined, { + name: 'cbScale', +}); +cbScale.helpTip = 'Whether to scale every layer before export'; +cbScale.text = 'Scale'; + +// GRPSCALELABEL +// ============= +var grpScaleLabel = grpScale.add('group', undefined, { name: 'grpScaleLabel' }); +grpScaleLabel.orientation = 'row'; +grpScaleLabel.alignChildren = ['left', 'center']; +grpScaleLabel.spacing = 0; +grpScaleLabel.margins = 0; + +var txtScale = grpScaleLabel.add('edittext {properties: {name: "txtScale"}}'); +txtScale.text = '100'; +txtScale.preferredSize.width = 36; + +var lblScale = grpScaleLabel.add('statictext', undefined, undefined, { + name: 'lblScale', +}); +lblScale.text = '%'; + +// PNLEXPORTAS +// =========== +var pnlExportAs = dialog.add('panel', undefined, undefined, { + name: 'pnlExportAs', + borderStyle: 'none', +}); +pnlExportAs.text = 'Export As'; +pnlExportAs.orientation = 'column'; +pnlExportAs.alignChildren = ['center', 'center']; +pnlExportAs.spacing = 10; +pnlExportAs.margins = [0, 6, 0, 0]; +pnlExportAs.alignment = ['fill', 'center']; + +// TABPNLEXPORTOPTIONS +// =================== +var tabpnlExportOptions = pnlExportAs.add('tabbedpanel', undefined, undefined, { + name: 'tabpnlExportOptions', +}); +tabpnlExportOptions.alignChildren = 'fill'; +tabpnlExportOptions.preferredSize.width = 554.625; +tabpnlExportOptions.margins = 0; +tabpnlExportOptions.alignment = ['fill', 'center']; + +// TABPNG24 +// ======== +var tabPng24 = tabpnlExportOptions.add('tab', undefined, undefined, { + name: 'tabPng24', +}); +tabPng24.text = 'PNG-24'; +tabPng24.orientation = 'column'; +tabPng24.alignChildren = ['left', 'top']; +tabPng24.spacing = 5; +tabPng24.margins = 10; + +// GRPPNG24MATTE +// ============= +var grpPng24Matte = tabPng24.add('group', undefined, { name: 'grpPng24Matte' }); +grpPng24Matte.orientation = 'row'; +grpPng24Matte.alignChildren = ['left', 'center']; +grpPng24Matte.spacing = 10; +grpPng24Matte.margins = 0; + +var lblPng24Matte = grpPng24Matte.add('statictext', undefined, undefined, { + name: 'lblPng24Matte', +}); +lblPng24Matte.text = 'Matte'; + +var ddPng24Matte_array = [ + 'White', + 'Black', + 'Gray', + '-', + 'Background', + 'Foreground', +]; +var ddPng24Matte = grpPng24Matte.add('dropdownlist', undefined, undefined, { + name: 'ddPng24Matte', + items: ddPng24Matte_array, +}); +ddPng24Matte.selection = 0; + +// TABPNG24 +// ======== +var cbPng24Transparency = tabPng24.add('checkbox', undefined, undefined, { + name: 'cbPng24Transparency', +}); +cbPng24Transparency.text = 'Transparency'; + +var cbPng24Interlaced = tabPng24.add('checkbox', undefined, undefined, { + name: 'cbPng24Interlaced', +}); +cbPng24Interlaced.text = 'Interlaced'; + +// TABPNG8 +// ======= +var tabPng8 = tabpnlExportOptions.add('tab', undefined, undefined, { + name: 'tabPng8', +}); +tabPng8.text = 'PNG-8'; +tabPng8.orientation = 'column'; +tabPng8.alignChildren = ['left', 'top']; +tabPng8.spacing = 5; +tabPng8.margins = 10; + +// GRPPNG8COLORREDUCTION +// ===================== +var grpPng8ColorReduction = tabPng8.add('group', undefined, { + name: 'grpPng8ColorReduction', +}); +grpPng8ColorReduction.orientation = 'row'; +grpPng8ColorReduction.alignChildren = ['left', 'center']; +grpPng8ColorReduction.spacing = 10; +grpPng8ColorReduction.margins = 0; + +var lblPng8ColorReduction = grpPng8ColorReduction.add( + 'statictext', + undefined, + undefined, + { name: 'lblPng8ColorReduction' } +); +lblPng8ColorReduction.text = 'Color Reduction'; + +var ddPng8ColorReduction_array = [ + 'Perceptual', + 'Selective', + 'Adaptive', + 'Restrictive (Web)', + '-', + 'Black & White', + 'Grayscale', + 'Mac OS', + 'Windows', +]; +var ddPng8ColorReduction = grpPng8ColorReduction.add( + 'dropdownlist', + undefined, + undefined, + { name: 'ddPng8ColorReduction', items: ddPng8ColorReduction_array } +); +ddPng8ColorReduction.selection = 0; + +// GRPPNG8NUMBEROFCOLORS +// ===================== +var grpPng8NumberOfColors = tabPng8.add('group', undefined, { + name: 'grpPng8NumberOfColors', +}); +grpPng8NumberOfColors.orientation = 'row'; +grpPng8NumberOfColors.alignChildren = ['left', 'center']; +grpPng8NumberOfColors.spacing = 10; +grpPng8NumberOfColors.margins = 0; + +var lblNumberOfColors = grpPng8NumberOfColors.add( + 'statictext', + undefined, + undefined, + { name: 'lblNumberOfColors' } +); +lblNumberOfColors.text = 'Number of Colors'; + +var txtPng8NumberofColors = grpPng8NumberOfColors.add( + 'edittext {properties: {name: "txtPng8NumberofColors"}}' +); +txtPng8NumberofColors.preferredSize.width = 36; + +// GRPPNG8DITHER +// ============= +var grpPng8Dither = tabPng8.add('group', undefined, { name: 'grpPng8Dither' }); +grpPng8Dither.orientation = 'row'; +grpPng8Dither.alignChildren = ['left', 'center']; +grpPng8Dither.spacing = 10; +grpPng8Dither.margins = 0; + +var lblPng8Dither = grpPng8Dither.add('statictext', undefined, undefined, { + name: 'lblPng8Dither', +}); +lblPng8Dither.text = 'Dither'; + +var ddPng8Dither_array = ['None', 'Diffusion', 'Pattern', 'Noise']; +var ddPng8Dither = grpPng8Dither.add('dropdownlist', undefined, undefined, { + name: 'ddPng8Dither', + items: ddPng8Dither_array, +}); +ddPng8Dither.selection = 1; + +// GRPPNG8DITHERSLIDER +// =================== +var grpPng8DitherSlider = grpPng8Dither.add('group', undefined, { + name: 'grpPng8DitherSlider', +}); +grpPng8DitherSlider.enabled = false; +grpPng8DitherSlider.orientation = 'row'; +grpPng8DitherSlider.alignChildren = ['left', 'center']; +grpPng8DitherSlider.spacing = 10; +grpPng8DitherSlider.margins = 0; + +var sldrPng8Dither = grpPng8DitherSlider.add( + 'slider', + undefined, + undefined, + undefined, + undefined, + { name: 'sldrPng8Dither' } +); +sldrPng8Dither.minvalue = 0; +sldrPng8Dither.maxvalue = 100; +sldrPng8Dither.value = 50; +sldrPng8Dither.preferredSize.width = 100; + +var lblPng8DitherValue = grpPng8DitherSlider.add( + 'statictext', + undefined, + undefined, + { name: 'lblPng8DitherValue' } +); +lblPng8DitherValue.text = '100%'; + +// GRPPNG8MATTE +// ============ +var grpPng8Matte = tabPng8.add('group', undefined, { name: 'grpPng8Matte' }); +grpPng8Matte.orientation = 'row'; +grpPng8Matte.alignChildren = ['left', 'center']; +grpPng8Matte.spacing = 10; +grpPng8Matte.margins = 0; + +var lblPng8Matte = grpPng8Matte.add('statictext', undefined, undefined, { + name: 'lblPng8Matte', +}); +lblPng8Matte.text = 'Matte'; + +var ddPng8Matte_array = [ + 'White', + 'Black', + 'Gray', + '-', + 'Background', + 'Foreground', +]; +var ddPng8Matte = grpPng8Matte.add('dropdownlist', undefined, undefined, { + name: 'ddPng8Matte', + items: ddPng8Matte_array, +}); +ddPng8Matte.selection = 0; + +// GRPPNG8TRANSPARENCY +// =================== +var grpPng8Transparency = tabPng8.add('group', undefined, { + name: 'grpPng8Transparency', +}); +grpPng8Transparency.orientation = 'row'; +grpPng8Transparency.alignChildren = ['left', 'center']; +grpPng8Transparency.spacing = 10; +grpPng8Transparency.margins = 0; + +var cbPng8Transparency = grpPng8Transparency.add( + 'checkbox', + undefined, + undefined, + { name: 'cbPng8Transparency' } +); +cbPng8Transparency.text = 'Transparency'; + +// GRPPNG8TRANSPARENCYDITHER +// ========================= +var grpPng8TransparencyDither = grpPng8Transparency.add('group', undefined, { + name: 'grpPng8TransparencyDither', +}); +grpPng8TransparencyDither.enabled = false; +grpPng8TransparencyDither.orientation = 'row'; +grpPng8TransparencyDither.alignChildren = ['left', 'center']; +grpPng8TransparencyDither.spacing = 10; +grpPng8TransparencyDither.margins = 0; + +var lblPng8TransparencyDither = grpPng8TransparencyDither.add( + 'statictext', + undefined, + undefined, + { name: 'lblPng8TransparencyDither' } +); +lblPng8TransparencyDither.text = 'Transparency Dither'; + +var ddPng8TransparencyDither_array = ['None', 'Diffusion', 'Pattern', 'Noise']; +var ddPng8TransparencyDither = grpPng8TransparencyDither.add( + 'dropdownlist', + undefined, + undefined, + { name: 'ddPng8TransparencyDither', items: ddPng8TransparencyDither_array } +); +ddPng8TransparencyDither.selection = 0; + +var sldrPng8TransparencyDither = grpPng8TransparencyDither.add( + 'slider', + undefined, + undefined, + undefined, + undefined, + { name: 'sldrPng8TransparencyDither' } +); +sldrPng8TransparencyDither.minvalue = 0; +sldrPng8TransparencyDither.maxvalue = 100; +sldrPng8TransparencyDither.value = 50; +sldrPng8TransparencyDither.preferredSize.width = 100; + +var lblPng8TransparencyDitherValue = grpPng8TransparencyDither.add( + 'statictext', + undefined, + undefined, + { name: 'lblPng8TransparencyDitherValue' } +); +lblPng8TransparencyDitherValue.text = '100%'; + +// TABPNG8 +// ======= +var cbPng8Interlaced = tabPng8.add('checkbox', undefined, undefined, { + name: 'cbPng8Interlaced', +}); +cbPng8Interlaced.text = 'Interlaced'; + +// TABJPG +// ====== +var tabJpg = tabpnlExportOptions.add('tab', undefined, undefined, { + name: 'tabJpg', +}); +tabJpg.text = 'JPG'; +tabJpg.orientation = 'column'; +tabJpg.alignChildren = ['left', 'top']; +tabJpg.spacing = 5; +tabJpg.margins = 10; + +// GRPJPGQUALITY +// ============= +var grpJpgQuality = tabJpg.add('group', undefined, { name: 'grpJpgQuality' }); +grpJpgQuality.orientation = 'row'; +grpJpgQuality.alignChildren = ['left', 'center']; +grpJpgQuality.spacing = 10; +grpJpgQuality.margins = 0; + +var lblQuality = grpJpgQuality.add('statictext', undefined, undefined, { + name: 'lblQuality', +}); +lblQuality.text = 'Quality'; + +var sldrJpgQuality = grpJpgQuality.add( + 'slider', + undefined, + undefined, + undefined, + undefined, + { name: 'sldrJpgQuality' } +); +sldrJpgQuality.minvalue = 0; +sldrJpgQuality.maxvalue = 100; +sldrJpgQuality.value = 50; +sldrJpgQuality.preferredSize.width = 200; + +var lblJpgQualityValue = grpJpgQuality.add('statictext', undefined, undefined, { + name: 'lblJpgQualityValue', +}); +lblJpgQualityValue.text = '100'; + +// GRPJPGMATTE +// =========== +var grpJpgMatte = tabJpg.add('group', undefined, { name: 'grpJpgMatte' }); +grpJpgMatte.orientation = 'row'; +grpJpgMatte.alignChildren = ['left', 'center']; +grpJpgMatte.spacing = 10; +grpJpgMatte.margins = 0; + +var lblJpgMatte = grpJpgMatte.add('statictext', undefined, undefined, { + name: 'lblJpgMatte', +}); +lblJpgMatte.text = 'Matte'; + +var ddJpgMatte_array = [ + 'White', + 'Black', + 'Gray', + '-', + 'Background', + 'Foreground', +]; +var ddJpgMatte = grpJpgMatte.add('dropdownlist', undefined, undefined, { + name: 'ddJpgMatte', + items: ddJpgMatte_array, +}); +ddJpgMatte.selection = 0; + +// TABJPG +// ====== +var cbJpgIcc = tabJpg.add('checkbox', undefined, undefined, { + name: 'cbJpgIcc', +}); +cbJpgIcc.text = 'ICC Profile'; + +var cbJpgOptimized = tabJpg.add('checkbox', undefined, undefined, { + name: 'cbJpgOptimized', +}); +cbJpgOptimized.text = 'Optimized'; + +var cbJpgProgressive = tabJpg.add('checkbox', undefined, undefined, { + name: 'cbJpgProgressive', +}); +cbJpgProgressive.text = 'Progressive'; + +// TABTIF +// ====== +var tabTif = tabpnlExportOptions.add('tab', undefined, undefined, { + name: 'tabTif', +}); +tabTif.text = 'TIFF'; +tabTif.orientation = 'column'; +tabTif.alignChildren = ['left', 'top']; +tabTif.spacing = 5; +tabTif.margins = 10; + +// GRPTIFENCODING +// ============== +var grpTifEncoding = tabTif.add('group', undefined, { name: 'grpTifEncoding' }); +grpTifEncoding.orientation = 'row'; +grpTifEncoding.alignChildren = ['left', 'center']; +grpTifEncoding.spacing = 10; +grpTifEncoding.margins = 0; + +var lblTifEncoding = grpTifEncoding.add('statictext', undefined, undefined, { + name: 'lblTifEncoding', +}); +lblTifEncoding.text = 'Image Compression'; + +var ddTifEncoding_array = ['None', 'LZW', 'ZIP', 'JPG']; +var ddTifEncoding = grpTifEncoding.add('dropdownlist', undefined, undefined, { + name: 'ddTifEncoding', + items: ddTifEncoding_array, +}); +ddTifEncoding.selection = 0; + +// GRPTIFQUALITY +// ============= +var grpTifQuality = grpTifEncoding.add('group', undefined, { + name: 'grpTifQuality', +}); +grpTifQuality.orientation = 'row'; +grpTifQuality.alignChildren = ['left', 'center']; +grpTifQuality.spacing = 10; +grpTifQuality.margins = 0; + +var lblTifQuality = grpTifQuality.add('statictext', undefined, undefined, { + name: 'lblTifQuality', +}); +lblTifQuality.text = 'Quality'; + +var sldrTifQuality = grpTifQuality.add( + 'slider', + undefined, + undefined, + undefined, + undefined, + { name: 'sldrTifQuality' } +); +sldrTifQuality.minvalue = 0; +sldrTifQuality.maxvalue = 100; +sldrTifQuality.value = 50; +sldrTifQuality.preferredSize.width = 100; + +var lblTifQualityValue = grpTifQuality.add('statictext', undefined, undefined, { + name: 'lblTifQualityValue', +}); +lblTifQualityValue.text = '100'; + +// TABTIF +// ====== +var cbTifWithAlpha = tabTif.add('checkbox', undefined, undefined, { + name: 'cbTifWithAlpha', +}); +cbTifWithAlpha.text = 'With Alpha Channel'; + +var cbTifIcc = tabTif.add('checkbox', undefined, undefined, { + name: 'cbTifIcc', +}); +cbTifIcc.text = 'ICC Profile'; + +var cbTifTransparency = tabTif.add('checkbox', undefined, undefined, { + name: 'cbTifTransparency', +}); +cbTifTransparency.text = 'Transparency'; + +// TABPDF +// ====== +var tabPdf = tabpnlExportOptions.add('tab', undefined, undefined, { + name: 'tabPdf', +}); +tabPdf.text = 'PDF'; +tabPdf.orientation = 'column'; +tabPdf.alignChildren = ['left', 'top']; +tabPdf.spacing = 5; +tabPdf.margins = 10; + +// GRPPDFSTANDARD +// ============== +var grpPdfStandard = tabPdf.add('group', undefined, { name: 'grpPdfStandard' }); +grpPdfStandard.orientation = 'row'; +grpPdfStandard.alignChildren = ['left', 'center']; +grpPdfStandard.spacing = 10; +grpPdfStandard.margins = 0; + +var lblPdfStandard = grpPdfStandard.add('statictext', undefined, undefined, { + name: 'lblPdfStandard', +}); +lblPdfStandard.text = 'Standard'; + +var ddPdfStandard_array = [ + 'None', + 'PDF/X-1a:2001', + 'PDF/X-1a:2003', + 'PDF/X-3:2002', + 'PDF/X-3:2003', + 'PDF/X-4:2010', +]; +var ddPdfStandard = grpPdfStandard.add('dropdownlist', undefined, undefined, { + name: 'ddPdfStandard', + items: ddPdfStandard_array, +}); +ddPdfStandard.selection = 0; + +var lblPdfCompatibility = grpPdfStandard.add( + 'statictext', + undefined, + undefined, + { name: 'lblPdfCompatibility' } +); +lblPdfCompatibility.text = 'Compatibility'; + +var ddPdfCompatibility_array = [ + 'Acrobat 4 (PDF 1.3)', + 'Acrobat 5 (PDF 1.4)', + 'Acrobat 6 (PDF 1.5)', + 'Acrobat 7 (PDF 1.6)', + 'Acrobat 8 (PDF 1.7)', +]; +var ddPdfCompatibility = grpPdfStandard.add( + 'dropdownlist', + undefined, + undefined, + { name: 'ddPdfCompatibility', items: ddPdfCompatibility_array } +); +ddPdfCompatibility.selection = 0; + +// GRPPDFCOLORCONVERSION +// ===================== +var grpPdfColorConversion = tabPdf.add('group', undefined, { + name: 'grpPdfColorConversion', +}); +grpPdfColorConversion.orientation = 'row'; +grpPdfColorConversion.alignChildren = ['left', 'center']; +grpPdfColorConversion.spacing = 10; +grpPdfColorConversion.margins = 0; + +var cbPdfColorConversion = grpPdfColorConversion.add( + 'checkbox', + undefined, + undefined, + { name: 'cbPdfColorConversion' } +); +cbPdfColorConversion.text = 'Color Conversion'; + +// GRPPDFDESTINATIONPROFILE +// ======================== +var grpPdfDestinationProfile = grpPdfColorConversion.add('group', undefined, { + name: 'grpPdfDestinationProfile', +}); +grpPdfDestinationProfile.orientation = 'row'; +grpPdfDestinationProfile.alignChildren = ['left', 'center']; +grpPdfDestinationProfile.spacing = 10; +grpPdfDestinationProfile.margins = 0; + +var lblPdfDestinationProfile = grpPdfDestinationProfile.add( + 'statictext', + undefined, + undefined, + { name: 'lblPdfDestinationProfile' } +); +lblPdfDestinationProfile.text = 'Destination'; + +var ddPdfDestinationProfile_array = [ + 'Japan Color 2001 Coated', + 'Japan Color 2001 Uncoated', + 'Japan Color 2002 Newspaper', + 'Japan Color 2003 Web Coated', + 'Japan Web Coated (Ad)', + 'U.S. Sheetfed Coated v2', + 'U.S. Sheetfed Uncoated v2', + 'U.S. Web Coated (SWOP) v2', + 'U.S. Web Uncoated v2', + '-', + 'sRGB IEC61966-2.1', + 'Adobe RGB (1998)', + 'Apple RGB', + 'ColorMatch RGBimage P3', + 'ProPhoto RGB', + 'Rec.601 NTSC Gamma 2.4', + 'Rec.601 PAL Gamma 2.4', + 'Rec.709 Gamma 2.4', +]; +var ddPdfDestinationProfile = grpPdfDestinationProfile.add( + 'dropdownlist', + undefined, + undefined, + { name: 'ddPdfDestinationProfile', items: ddPdfDestinationProfile_array } +); +ddPdfDestinationProfile.selection = 0; + +// GRPPDFDOWNSAMPLE +// ================ +var grpPdfDownSample = tabPdf.add('group', undefined, { + name: 'grpPdfDownSample', +}); +grpPdfDownSample.orientation = 'row'; +grpPdfDownSample.alignChildren = ['left', 'center']; +grpPdfDownSample.spacing = 10; +grpPdfDownSample.margins = 0; + +var ddPdfDownSample_array = [ + 'Do Not Downsample', + 'Average Downsampling To', + 'Subsampling To', + 'Bicubic Downsampling To', +]; +var ddPdfDownSample = grpPdfDownSample.add( + 'dropdownlist', + undefined, + undefined, + { name: 'ddPdfDownSample', items: ddPdfDownSample_array } +); +ddPdfDownSample.selection = 3; + +// GRPPDFDOWNSAMPLESIZE +// ==================== +var grpPdfDownSampleSize = grpPdfDownSample.add('group', undefined, { + name: 'grpPdfDownSampleSize', +}); +grpPdfDownSampleSize.orientation = 'row'; +grpPdfDownSampleSize.alignChildren = ['left', 'center']; +grpPdfDownSampleSize.spacing = 10; +grpPdfDownSampleSize.margins = 0; + +var txtPdfDownSampleSize = grpPdfDownSampleSize.add( + 'edittext {properties: {name: "txtPdfDownSampleSize"}}' +); +txtPdfDownSampleSize.text = '300'; +txtPdfDownSampleSize.preferredSize.width = 40; + +var lblPdfDownSampleSize = grpPdfDownSampleSize.add( + 'statictext', + undefined, + undefined, + { name: 'lblPdfDownSampleSize' } +); +lblPdfDownSampleSize.text = 'PPI'; + +var lblPdfDownSampleSizeLimit = grpPdfDownSampleSize.add( + 'statictext', + undefined, + undefined, + { name: 'lblPdfDownSampleSizeLimit' } +); +lblPdfDownSampleSizeLimit.text = 'For Images Above'; + +var txtPdfDownSampleSizeLimit = grpPdfDownSampleSize.add( + 'edittext {properties: {name: "txtPdfDownSampleSizeLimit"}}' +); +txtPdfDownSampleSizeLimit.text = '450'; +txtPdfDownSampleSizeLimit.preferredSize.width = 40; + +var lblPdfDownSampleSizeLimit2 = grpPdfDownSampleSize.add( + 'statictext', + undefined, + undefined, + { name: 'lblPdfDownSampleSizeLimit2' } +); +lblPdfDownSampleSizeLimit2.text = 'PPI'; + +// GRPPDFENCODING +// ============== +var grpPdfEncoding = tabPdf.add('group', undefined, { name: 'grpPdfEncoding' }); +grpPdfEncoding.orientation = 'row'; +grpPdfEncoding.alignChildren = ['left', 'center']; +grpPdfEncoding.spacing = 10; +grpPdfEncoding.margins = 0; + +var lblPdfEncoding = grpPdfEncoding.add('statictext', undefined, undefined, { + name: 'lblPdfEncoding', +}); +lblPdfEncoding.text = 'Compression'; + +var ddPdfEncoding_array = ['None', 'ZIP', 'JPEG']; +var ddPdfEncoding = grpPdfEncoding.add('dropdownlist', undefined, undefined, { + name: 'ddPdfEncoding', + items: ddPdfEncoding_array, +}); +ddPdfEncoding.selection = 2; + +// GRPPDFQUALITY +// ============= +var grpPdfQuality = grpPdfEncoding.add('group', undefined, { + name: 'grpPdfQuality', +}); +grpPdfQuality.orientation = 'row'; +grpPdfQuality.alignChildren = ['left', 'center']; +grpPdfQuality.spacing = 10; +grpPdfQuality.margins = 0; + +var lblPdfQuality = grpPdfQuality.add('statictext', undefined, undefined, { + name: 'lblPdfQuality', +}); +lblPdfQuality.text = 'Quality'; + +var sldrPdfQuality = grpPdfQuality.add( + 'slider', + undefined, + undefined, + undefined, + undefined, + { name: 'sldrPdfQuality' } +); +sldrPdfQuality.minvalue = 0; +sldrPdfQuality.maxvalue = 100; +sldrPdfQuality.value = 50; +sldrPdfQuality.preferredSize.width = 100; + +var lblPdfQualityValue = grpPdfQuality.add('statictext', undefined, undefined, { + name: 'lblPdfQualityValue', +}); +lblPdfQualityValue.text = '100'; + +// TABPDF +// ====== +var cbPdfWithAlpha = tabPdf.add('checkbox', undefined, undefined, { + name: 'cbPdfWithAlpha', +}); +cbPdfWithAlpha.text = 'With Alpha Channel'; + +var cbPdfIcc = tabPdf.add('checkbox', undefined, undefined, { + name: 'cbPdfIcc', +}); +cbPdfIcc.text = 'ICC Profile'; + +// TABTGA +// ====== +var tabTga = tabpnlExportOptions.add('tab', undefined, undefined, { + name: 'tabTga', +}); +tabTga.text = 'TGA'; +tabTga.orientation = 'column'; +tabTga.alignChildren = ['left', 'top']; +tabTga.spacing = 5; +tabTga.margins = 10; + +// GRPTGADEPTH +// =========== +var grpTgaDepth = tabTga.add('group', undefined, { name: 'grpTgaDepth' }); +grpTgaDepth.orientation = 'row'; +grpTgaDepth.alignChildren = ['left', 'center']; +grpTgaDepth.spacing = 10; +grpTgaDepth.margins = 0; + +var lblTgaDepth = grpTgaDepth.add('statictext', undefined, undefined, { + name: 'lblTgaDepth', +}); +lblTgaDepth.text = 'Depth'; + +var ddTgaDepth_array = ['16 bit', '24 bit', '36 bit']; +var ddTgaDepth = grpTgaDepth.add('dropdownlist', undefined, undefined, { + name: 'ddTgaDepth', + items: ddTgaDepth_array, +}); +ddTgaDepth.selection = 0; + +// TABTGA +// ====== +var cbTgaWithAlpha = tabTga.add('checkbox', undefined, undefined, { + name: 'cbTgaWithAlpha', +}); +cbTgaWithAlpha.text = 'With Alpha Channel'; + +var cbTgaRleCompression = tabTga.add('checkbox', undefined, undefined, { + name: 'cbTgaRleCompression', +}); +cbTgaRleCompression.text = 'RLE Compression'; + +// TABBMP +// ====== +var tabBmp = tabpnlExportOptions.add('tab', undefined, undefined, { + name: 'tabBmp', +}); +tabBmp.text = 'BMP'; +tabBmp.orientation = 'column'; +tabBmp.alignChildren = ['left', 'top']; +tabBmp.spacing = 5; +tabBmp.margins = 10; + +// GRPBMPDEPTH +// =========== +var grpBmpDepth = tabBmp.add('group', undefined, { name: 'grpBmpDepth' }); +grpBmpDepth.orientation = 'row'; +grpBmpDepth.alignChildren = ['left', 'center']; +grpBmpDepth.spacing = 10; +grpBmpDepth.margins = 0; + +var lblBmpDepth = grpBmpDepth.add('statictext', undefined, undefined, { + name: 'lblBmpDepth', +}); +lblBmpDepth.text = 'Depth'; + +var ddBmpDepth_array = [ + '24 bit', + '32 bit', + 'RGB 565 (16 bit)', + 'ARGB 1555 (16 bit)', + 'ARGB 4444 (16 bit)', +]; +var ddBmpDepth = grpBmpDepth.add('dropdownlist', undefined, undefined, { + name: 'ddBmpDepth', + items: ddBmpDepth_array, +}); +ddBmpDepth.selection = 0; + +// TABBMP +// ====== +var cbBmpWithAlpha = tabBmp.add('checkbox', undefined, undefined, { + name: 'cbBmpWithAlpha', +}); +cbBmpWithAlpha.text = 'With Alpha Channel'; + +var cbBmpRleCompression = tabBmp.add('checkbox', undefined, undefined, { + name: 'cbBmpRleCompression', +}); +cbBmpRleCompression.text = 'RLE Compression'; + +var cbBmpFlipRowOrder = tabBmp.add('checkbox', undefined, undefined, { + name: 'cbBmpFlipRowOrder', +}); +cbBmpFlipRowOrder.text = 'Flip Row Order'; + +// PSD +// === +var PSD = tabpnlExportOptions.add('tab', undefined, undefined, { name: 'PSD' }); +PSD.text = 'PSD'; +PSD.orientation = 'column'; +PSD.alignChildren = ['left', 'top']; +PSD.spacing = 10; +PSD.margins = 10; + +// TABPNLEXPORTOPTIONS +// =================== +tabpnlExportOptions.selection = tabPng24; + +// DIALOG +// ====== +var lblMetadata = dialog.add('statictext', undefined, undefined, { + name: 'lblMetadata', +}); +lblMetadata.text = + 'This document contains {0} layer(s), {1} of them visible, {2} selected'; +lblMetadata.justify = 'center'; + +var lblContact = dialog.add('group', undefined, { name: 'lblContact' }); +lblContact.getText = function () { + var t = []; + for (var n = 0; n < lblContact.children.length; n++) { + var text = lblContact.children[n].text || ''; + if (text === '') text = ' '; + t.push(text); + } + return t.join('\n'); +}; +lblContact.orientation = 'column'; +lblContact.alignChildren = ['center', 'center']; +lblContact.spacing = 0; + +lblContact.add( + 'statictext', + undefined, + 'To get the most recent version, or leave feedback, go to:' +); +lblContact.add( + 'statictext', + undefined, + 'https://github.com/antipalindrome/Photoshop-Export-Layers-to-Files-Fast' +); + +dialog.show(); diff --git a/example.png b/example.png index 166e79b..dc29d02 100644 Binary files a/example.png and b/example.png differ