... | ... | @@ -35,6 +35,10 @@ We welcome IceSL users to redirect their questions about the scripting language |
|
|
4. [Fields](#fields)
|
|
|
5. [Mesh Information](#meshinfo)
|
|
|
6. [Miscellaneous Functions](#miscfunc)
|
|
|
9. [Service Mode](#servicemode)
|
|
|
1. [Invoking Service Mode](#invokeservicemode)
|
|
|
2. [Service Mode functions](#servicemodefunctions)
|
|
|
3. [Examples](#servicemodeexamples)
|
|
|
|
|
|
## Syntax <a name="syntax"></a>
|
|
|
|
... | ... | @@ -1232,7 +1236,7 @@ Executes the scipt in ```path``` |
|
|
|
|
|
```load_image(filename)```
|
|
|
|
|
|
Returns a 2D table where each $`(i,j)`$ index is a vector that corresponds to the rgb pixel from the image file ```filename```
|
|
|
Returns a 2D table where each ```(i,j)```` index is a vector that corresponds to the rgb pixel from the image file ```filename```
|
|
|
|
|
|
```screenshot()```
|
|
|
|
... | ... | @@ -1249,3 +1253,36 @@ Suspends execution of IceSL by ```ms``` milliseconds. |
|
|
Saves the shape ```shape``` in file ```filename```
|
|
|
* ```shape```: shape to save
|
|
|
* ```filename```: destination file to save the shape. Supports _stl_ and _obj_ extensions
|
|
|
|
|
|
## 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_.
|
|
|
|
|
|
### 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:
|
|
|
|
|
|
* `IceSL-slicer.exe -s` (Windows)
|
|
|
* `./IceSL-slicer -s` (Linux)
|
|
|
|
|
|
### Service Mode functions <a name="invokeservicemode"></a>
|
|
|
|
|
|
```set_service(service)```
|
|
|
|
|
|
Sets ```service``` as the current service to be used.
|
|
|
* ```service```: can be one of the following:
|
|
|
* ```'FilamentSlicer'```
|
|
|
* ```'LaserCutSlicer'```
|
|
|
* ```'MeshExportService'```
|
|
|
* ```'SVGSlicer'```
|
|
|
|
|
|
```run_service(filename)```
|
|
|
|
|
|
Executes the service and outputs the result to ```filename```.
|
|
|
|
|
|
```load_settings(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 |