... | @@ -970,23 +970,6 @@ emit(merge(centroids)) |
... | @@ -970,23 +970,6 @@ emit(merge(centroids)) |
|
## Other Functionality <a name="otherfunc"></a>
|
|
## Other Functionality <a name="otherfunc"></a>
|
|
### Printing settings <a name="settings"></a>
|
|
### Printing settings <a name="settings"></a>
|
|
|
|
|
|
It is possible for custom printing settings to be shown and modified in IceSL's UI. Currently there is support for two types of settings; booleans and numbers. The following two definitions can be used in file ```features.lua``` of a printer profile:
|
|
|
|
|
|
|
|
```add_checkbox_setting(internal_name, description, tooltip, default)```
|
|
|
|
|
|
|
|
```add_setting(internal_name, description, minVal, maxVal, tooltip, default)```
|
|
|
|
|
|
|
|
Adds setting ```internal_name``` with ```description```, minimum value ```minValue``` and maximum value ```maxValue```. Default value is ```false``` for ```add_checkbox_setting``` and ```minValue``` for ```add_setting```:
|
|
|
|
* ```internal_name``` : internal name for setting
|
|
|
|
* ```description``` : description of setting (shown in UI)
|
|
|
|
* ```minValue``` : minimal value in case of a number setting (i.e., ```add_setting```)
|
|
|
|
* ```maxValue``` : maximum value in case of a number setting (i.e., ```add_setting```)
|
|
|
|
* ```tooltip``` : tooltip help to show in IceSL's UI. This parameter is _optional_.
|
|
|
|
* ```default``` : default value. This parameter is _optional_.
|
|
|
|
|
|
|
|
|
|
|
|
The setting's value can then be queried in file ```printer.lua``` of the printer profile by using the setting's ```internal_name```.
|
|
|
|
|
|
|
|
Scripts also have the ability to change printing settings directly from within them. This allows the user (among other reasons) to specify printing settings tailored to the geometry being described in the script.
|
|
Scripts also have the ability to change printing settings directly from within them. This allows the user (among other reasons) to specify printing settings tailored to the geometry being described in the script.
|
|
|
|
|
|
IceSL gives priority to an assignment of a printing setting according to the following list:
|
|
IceSL gives priority to an assignment of a printing setting according to the following list:
|
... | | ... | |