update CLI to work in CAM mode and add working samples

This commit is contained in:
Stewart Allen 2022-10-16 12:17:35 -04:00
commit d6757d1758
9 changed files with 346 additions and 124 deletions

View file

@ -42,6 +42,8 @@ CAM.prepare = async function(widgets, settings, update) {
});
const output = print.output.filter(level => Array.isArray(level));
if (render) // allows it to run from CLI
return render.path(output, (progress, layer) => {
update(0.75 + progress * 0.25, "render", layer);
}, {