... | ... | @@ -1256,20 +1256,20 @@ Saves the shape ```shape``` in file ```filename``` |
|
|
|
|
|
## Service Mode <a name="servicemode"></a>
|
|
|
|
|
|
IceSL offers the possibility of batch processing and/or using its services (e.g., slicing) without UI input. This is achievable through _Service Mode_.
|
|
|
IceSL offers the possibility of batch processing of its services (e.g., slicing, meshing, SVG output, etc.) without UI input. This is achievable through _Service Mode_.
|
|
|
|
|
|
In _Service Mode_, it is mandatory to provide IceSL with a lua script via the command line. There is no user interface nor any interaction from the user. IceSL only outputs diagnostic information of the services used while executing the script.
|
|
|
In _Service Mode_, it is mandatory to provide IceSL with a lua script via the command line. There is no user interface nor any interaction from the user. Moreover, IceSL only outputs diagnostic information of the services used in the script.
|
|
|
|
|
|
### Invoking Service Mode <a name="invokeservicemode"></a>
|
|
|
|
|
|
_Service Mode_ can only be activated in _IceSL-slicer_, it **cannot** be invoked in _IceSL-forge_. To activate _Service Mode_ execute _IceSL-slicer_ with the `-s` flag and a script to execute:
|
|
|
_Service Mode_ can only be activated in _IceSL-slicer_, it **cannot** be invoked in _IceSL-forge_. To activate _Service Mode_, execute _IceSL-slicer_ with the `-s` flag and provide script to execute:
|
|
|
|
|
|
* `IceSL-slicer.exe -s script_filename` (Windows)
|
|
|
* `./IceSL-slicer -s script_filename` (Linux)
|
|
|
|
|
|
### Service Mode functions <a name="invokeservicemode"></a>
|
|
|
|
|
|
The following functions are only available in _Service Mode_:
|
|
|
In addition to all other documented functions, the following also become available in _Service Mode_:
|
|
|
|
|
|
```set_service(service)```
|
|
|
|
... | ... | @@ -1293,8 +1293,7 @@ Loads settings (e.g., printing settings) saved in ```filename```. |
|
|
|
|
|
Slicing in _Service Mode_:
|
|
|
```lua
|
|
|
shape = scale(0.5) * load(Path..'fox.stl')
|
|
|
emit(shape)
|
|
|
emit(scale(0.5) * load(Path..'fox.stl'))
|
|
|
set_service('FilamentSlicer')
|
|
|
load_settings(Path..'fox_printing_settings.xml')
|
|
|
run_service(Path..'fox.gcode')
|
... | ... | |