diff --git a/AnimateMate.sketchplugin/Contents/Sketch/library/Animate.js b/AnimateMate.sketchplugin/Contents/Sketch/library/Animate.js index 7b2ed12..c0d64da 100755 --- a/AnimateMate.sketchplugin/Contents/Sketch/library/Animate.js +++ b/AnimateMate.sketchplugin/Contents/Sketch/library/Animate.js @@ -518,9 +518,14 @@ Animate.prototype.getLayers = function (layers, loopNestedGroups) { Animate.prototype.saveImagePNG = function (keyframeNumber, exportFolder, scaleValue) { var exportFolder = exportFolder || this.exportFolders.tempFolder.folderPath; var fileName = exportFolder.stringByAppendingPathComponent(this.exportName + '_' + keyframeNumber + '.png'); - var scaleSlice = [MSExportRequest requestWithRect:utils.artboardRect scale:scaleValue]; - //utils.doc.saveArtboardOrSlice_toFile_(utils.artboard, fileName); - utils.doc.saveArtboardOrSlice_toFile_(scaleSlice, fileName); + if (utils.sketchVersion >= 41) { + utils.doc.saveArtboardOrSlice_toFile_(utils.artboard, fileName); + } + else { + // Work only with sketch < 41 version + var scaleSlice = [MSExportRequest requestWithRect:utils.artboardRect scale:scaleValue]; + utils.doc.saveArtboardOrSlice_toFile_(scaleSlice, fileName); + } }; diff --git a/AnimateMate.sketchplugin/Contents/Sketch/manifest.json b/AnimateMate.sketchplugin/Contents/Sketch/manifest.json index a875dba..23d749f 100755 --- a/AnimateMate.sketchplugin/Contents/Sketch/manifest.json +++ b/AnimateMate.sketchplugin/Contents/Sketch/manifest.json @@ -4,7 +4,7 @@ "author": "Creatide", "authorEmail": "hello@creatide.com", "homepage": "http://github.com/Creatide/AnimateMate", - "version": "0.1.6", + "version": "0.1.7", "identifier": "com.creatide.sketch.animatemate", "compatibleVersion": "3.5.2", "bundleVersion": 1, diff --git a/README.md b/README.md index ca433b7..20e8849 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,10 @@ Here are a couple examples that are made using **AnimateMate** plugin in **Sketc ![Example 9](https://github.com/Creatide/AnimateMate/blob/gh-pages/img/readme/AnimateMate_Example_CassetteDemo.gif) +## Known Bugs to Fix + +* [] Export scaling option doesn't work after Sketch 41 version. + ## Roadmap & Feature Ideas * [x] Remember values in some input fields in dialogs