... | ... | @@ -907,12 +907,12 @@ The setting's value can then be queried in file ```printer.lua``` of the printer |
|
|
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:
|
|
|
1. Default IceSL values -- ''bottom priority''
|
|
|
1. Default IceSL values -- _bottom priority_
|
|
|
2. Printer features (i.e., ```features.lua``` in printer profiles)
|
|
|
3. Print profile (e.g., fast print, high quiality, etc.)
|
|
|
4. Material profile (e.g., abs, pla, etc.)
|
|
|
5. Lua script
|
|
|
6. User interface -- ''top priority''
|
|
|
6. User interface -- _top priority_
|
|
|
|
|
|
For example, if the value of a setting is specified in a printer profile as well as in the lua script, the latter takes priority. Moreover, if the user sets it manually using the UI then this overrides all other assignements.
|
|
|
|
... | ... | @@ -920,12 +920,12 @@ For example, if the value of a setting is specified in a printer profile as well |
|
|
|
|
|
Sets the printing parameter ```settings``` to ```value```
|
|
|
* ```setting```: Internal name of the printing setting to change
|
|
|
* ```value```: Value to assign. May be a boolean, a number, a string or a table. The latter is reserved to ''per-layer'' assignments whereas the table is to be constructed as follows:
|
|
|
* ```value```: Value to assign. May be a boolean, a number, a string or a table. The latter is reserved to _per-layer_ assignments whereas the table is to be constructed as follows:
|
|
|
** ```{ [key_0]=value_0, ... , [key_n]=value_n }```
|
|
|
|
|
|
```set_setting_value(setting, tex3d, boxMin, boxMax)```
|
|
|
|
|
|
Sets the printing parameter ```setting``` as a ''field'' that extends from ```boxMin``` to ```boxMax``` with values from ```tex3d```
|
|
|
Sets the printing parameter ```setting``` as a _field_ that extends from ```boxMin``` to ```boxMax``` with values from ```tex3d```
|
|
|
* ```setting```: Internal name of the printing setting to change
|
|
|
* ```tex3d```: Value of the field as a 3d texture
|
|
|
* ```boxMin,boxMax```: Field extent
|
... | ... | @@ -1095,7 +1095,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()```
|
|
|
|
... | ... | |