... | ... | @@ -1258,15 +1258,19 @@ Saves the shape ```shape``` in file ```filename``` |
|
|
|
|
|
IceSL offers the possibility of batch processing and/or using its services (e.g., slicing) 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.
|
|
|
|
|
|
### 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:
|
|
|
_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:
|
|
|
|
|
|
* `IceSL-slicer.exe -s` (Windows)
|
|
|
* `./IceSL-slicer -s` (Linux)
|
|
|
* `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_:
|
|
|
|
|
|
```set_service(service)```
|
|
|
|
|
|
Sets ```service``` as the current service to be used.
|
... | ... | @@ -1285,4 +1289,21 @@ Executes the service and outputs the result to ```filename```. |
|
|
Loads settings (e.g., printing settings) saved in ```filename```.
|
|
|
* ```filename```: xml file
|
|
|
|
|
|
### Service Mode examples <a name="servicemodeexamples"></a> |
|
|
\ No newline at end of file |
|
|
### Service Mode examples <a name="servicemodeexamples"></a>
|
|
|
|
|
|
Slicing in _Service Mode_:
|
|
|
```lua
|
|
|
shape = scale(0.5) * load(Path..'fox.stl')
|
|
|
emit(shape)
|
|
|
set_service('FilamentSlicer')
|
|
|
load_settings(Path..'fox_printing_settings.xml')
|
|
|
run_service(Path..'fox.gcode')
|
|
|
```
|
|
|
|
|
|
Meshing in _Service Mode_:
|
|
|
```lua
|
|
|
emit(difference(ccube(40),sphere(25)))
|
|
|
set_service('MeshExportService')
|
|
|
set_setting_value('meshing_method', 'Dual contouring')
|
|
|
run_service('C:\\Users\\milchy\\Documents\\my_shape.stl'')
|
|
|
``` |
|
|
\ No newline at end of file |