Permalink
Browse files
modified to write layer and exposure settings to Readme in zip file
- Loading branch information...
Showing
with
9 additions
and
1 deletion.
-
+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