... | ... | @@ -232,6 +232,30 @@ Utility information is also available by means of variables: |
|
|
| ```slicer_version``` | string | slicer version used |
|
|
|
| ```slicer_build_date``` | string | build date of slicer used |
|
|
|
|
|
|
Path and vertex attributes are updated each new path and each new vertex respectively. These attributes' values are always numbers and are available on the following variables<sup>6</sup>:
|
|
|
|
|
|
| Variable | Type | Description |
|
|
|
| ------ | ------ | ------ |
|
|
|
| ```path_attributes``` | array | Per-path attributes (updated each new path) |
|
|
|
| ```vertex_attributes``` | array | Per-vertex attributes (updated each call to ```move_xyz``` or ```move_xyze```) |
|
|
|
|
|
|
The following path and/or vertex attributes are currently used by IceSL:
|
|
|
|
|
|
| Variable | Type | Description |
|
|
|
| ------ | ------ | ------ |
|
|
|
| ```flow_multiplier``` | Per-path, per-vertex | Flow multiplier |
|
|
|
| ```zoffset``` | Per-path, per-vertex | Position offset on the Z axis |
|
|
|
|
|
|
<sup>6. Currently available only in the beta version of IceSL.</sup>
|
|
|
|
|
|
Example of using a per-path attribute:
|
|
|
|
|
|
```lua
|
|
|
if path_attributes['flow_multiplier'] > 1 then
|
|
|
-- do something
|
|
|
end
|
|
|
```
|
|
|
|
|
|
### Example <a name="example"></a>
|
|
|
|
|
|
As an example to tie all the concepts explained above we show the prime function of a printer profile:
|
... | ... | |