add option for screenshot/thumbnail in gcode export
This commit is contained in:
parent
988dbc129f
commit
5ae6b74a3f
6 changed files with 47 additions and 6 deletions
|
|
@ -686,6 +686,7 @@
|
|||
exportOcto: false,
|
||||
exportGhost: false,
|
||||
exportLocal: false,
|
||||
exportThumb: false,
|
||||
exportPreview: false,
|
||||
decimate: true,
|
||||
detail: "75",
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@
|
|||
control.exportOcto = UI.exportOcto.checked;
|
||||
control.exportGhost = UI.exportGhost.checked;
|
||||
control.exportLocal = UI.exportLocal.checked;
|
||||
control.exportThumb = UI.exportThumb.checked;
|
||||
control.exportPreview = UI.exportPreview.checked;
|
||||
control.decimate = UI.decimate.checked;
|
||||
control.healMesh = UI.healMesh.checked;
|
||||
|
|
@ -1644,6 +1645,7 @@
|
|||
exportOcto: UC.newBoolean(`OctoPrint`, booleanSave),
|
||||
exportGhost: UC.newBoolean(`Grid:Host`, booleanSave),
|
||||
exportLocal: UC.newBoolean(`Grid:Local`, booleanSave),
|
||||
exportThumb: UC.newBoolean(`Thumbnail`, booleanSave),
|
||||
exportPreview: UC.newBoolean(`Code Preview`, booleanSave),
|
||||
|
||||
parts: UC.newGroup(LANG.pt_menu, $('prefs-prt'), {inline: true}),
|
||||
|
|
|
|||
|
|
@ -992,8 +992,8 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
|||
function prepareSlices(callback, scale = 1, offset = 0) {
|
||||
if (viewMode == VIEWS.ARRANGE) {
|
||||
let snap = SPACE.screenshot();
|
||||
API.view.snapshot = snap.substring(snap.indexOf(",")+1);
|
||||
KIRI.work.snap(API.view.snapshot);
|
||||
API.view.snapshot = snap.substring(snap.indexOf(",") + 1);
|
||||
KIRI.work.snap(SPACE.screenshot2());
|
||||
}
|
||||
if (MODE === MODES.SLA && !callback) {
|
||||
callback = preparePreview;
|
||||
|
|
|
|||
Loading…
Reference in a new issue