Skip to content
Permalink
Browse files

modified to write layer and exposure settings to Readme in zip file

  • Loading branch information...
rkoeppl committed May 8, 2016
1 parent d3e6d2e commit 9e13ecdc621248ba9fd25c5637242e841be0753b
Showing with 9 additions and 1 deletion.
  1. +9 −1 js/main.js
@@ -454,7 +454,15 @@ function startSlicing() {
if (settings.get('slicer.zip')) {
zipFile = new JSZip();
zipFolder = zipFile.folder('slices');
zipFile.file("README.txt", 'Generated by SLAcer.js\r\nhttp://lautr3k.github.io/SLAcer.js/\r\n');
ontime = parseInt(times.on);
offtime = parseInt(times.off);
layerheight=settings.get('slicer.layers.height');
ziptext1= '#Generated by SLAcer.js\r\n#http://lautr3k.github.io/SLAcer.js/\r\nlayer_height= '+layerheight;
ziptext2='\r\nexposure_time= '+ontime;
ziptext3= '\r\nresin_settling_time= '+offtime;
ziptext= ziptext1+ziptext2+ziptext3;

zipFile.file("README.txt",ziptext);
}

slicesNumber && slice();

0 comments on commit 9e13ecd

Please sign in to comment.
You can’t perform that action at this time.