Skip to content

Commit

Permalink
v4.5
Browse files Browse the repository at this point in the history
- Fixed bug where initial selection of artboards wasn't being noticed by package export system.
- Fixed crashing error when accessing 'PDFPresetsList'
- Layers unselected by default
  • Loading branch information
TomByrne committed Jan 24, 2018
1 parent 7732962 commit a36b2a5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SmartCore/ExportSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
artboardAll:false,
artboardInd:[],

layerAll:true,
layerAll:false,
layerInd:[],
artboardAll_layers:true,
artboardInd_layers:[],
Expand Down
3 changes: 3 additions & 0 deletions SmartCore/ExportToolBuilder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
exSettings.artboardInd_layers = scopedThis.artboardPanel_layers.selectedIndices;
scopedThis.updatePreviewList();
};
this.artboardPanel_layers.onSelectedChanged();

this.layerPanel = new pack.LayerPanel(tab, exSettings.layerAll, exSettings.layerInd, pack.IGNORE_LAYERS, exSettings.ignoreOutOfBounds_layers);
this.layerPanel.onSelectedChanged = function() {
Expand All @@ -127,6 +128,7 @@
exSettings.artboardInd = scopedThis.artboardPanel.selectedIndices;
scopedThis.updatePreviewList();
};
this.artboardPanel.onSelectedChanged();
}

if(doElement){
Expand All @@ -139,6 +141,7 @@
exSettings.artboardInd_elements = scopedThis.artboardPanel_elements.selectedIndices;
scopedThis.updatePreviewList();
};
this.artboardPanel_elements.onSelectedChanged();

this.elementPanel = new pack.ElementPanel(tab, exSettings.elementPaths, exSettings.elementOpenPaths, pack.IGNORE_LAYERS, exSettings.ignoreOutOfBounds_elements);
this.elementPanel.onSelectedChanged = function() {
Expand Down
13 changes: 9 additions & 4 deletions SmartCore/Formats.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,18 @@
// }
// }
// var pDFPreset = list("pDFPreset", "PDF Preset", 0, pdfPresets);

var PDFPresetsList;
try{
PDFPresetsList = app.PDFPresetsList;
}catch(e){
// ignore
}

var pdfPresets;
if(app.PDFPresetsList != null){
if(PDFPresetsList != null){
pdfPresets = [];
for(var i=0; i<app.PDFPresetsList.length; i++){
var preset = app.PDFPresetsList[i];
for(var i=0; i<PDFPresetsList.length; i++){
var preset = PDFPresetsList[i];
pdfPresets.push(opt(preset, preset));
}
}
Expand Down
10 changes: 9 additions & 1 deletion org.tbyrne.smartExport.mxi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<macromedia-extension id="org.tbyrne.smartExport" name="Smart Layer Export" version="4.3.0">
<macromedia-extension id="org.tbyrne.smartExport" name="Smart Layer Export" version="4.5.0">
<description><![CDATA[<h3>Features:</h3>
- Ability to scale output files for HiDPI (Retina) displays, or any other scale factor.
- Can set up multiple export formats for a single file for easy regeneration of multiple asset sizes/types.
Expand Down Expand Up @@ -28,6 +28,14 @@ To use, go to File > Scripts > Smart Layer Export
<h3>Change Log:</h3>
<h3>24/01/2018 - v4.5</h3>
- Fixed bug where initial selection of artboards wasn't being noticed by package export system.
- Fixed crashing error when accessing 'PDFPresetsList'
- Layers unselected by default
<h3>05/12/2017 - v4.4</h3>
- 'All Layers' unselected by default
<h3>31/10/2017 - v4.3</h3>
- 'All Symbols' deselected by default
- Fixed error being thrown when switching between formats
Expand Down

0 comments on commit a36b2a5

Please sign in to comment.