... | ... | @@ -1039,7 +1039,7 @@ emit(scale(1) * mesh) |
|
|
```ui_scalar(name, default, min, max)```
|
|
|
|
|
|
Creates a sliding bar to interactively set a float value between ```min``` and ```max```.
|
|
|
* ```name```: the sliding bar's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```default```: default value
|
|
|
* ```min```: minimum value
|
|
|
* ```max```: maximum value
|
... | ... | @@ -1063,14 +1063,14 @@ emit(sphere(r)) |
|
|
```ui_scalarBox(name, default, step)```
|
|
|
|
|
|
Creates a quantity (+/-) box stepped by ```step``` to interactively set a float value.
|
|
|
* ```name```: the box's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```default```: default value
|
|
|
* ```step```: increment/decrement delta
|
|
|
|
|
|
```ui_number(name, default, min, max)```
|
|
|
|
|
|
Creates a sliding bar to interactively set an integer value between ```min``` and ```max```.
|
|
|
* ```name```: the sliding bar's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```default```: default value
|
|
|
* ```min```: minimum value
|
|
|
* ```max```: maximum value
|
... | ... | @@ -1078,25 +1078,25 @@ Creates a sliding bar to interactively set an integer value between ```min``` an |
|
|
```ui_numberBox(name, default)```
|
|
|
|
|
|
Creates a quantity (+/-) box to interactively set an integer value.
|
|
|
* ```name```: the box's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```default```: default value
|
|
|
|
|
|
```ui_bool(name, default)```
|
|
|
|
|
|
Creates a checkbox to interactively set a Boolean value.
|
|
|
* ```name```: the checkbox's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```default```: default value
|
|
|
|
|
|
```ui_text(name, default)```
|
|
|
|
|
|
Creates a text input box to interactively set a string value.
|
|
|
* ```name```: the text input's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```default```: default value
|
|
|
|
|
|
```ui_radio(name, list)```
|
|
|
|
|
|
Creates a radio box to interactively choose an integer value from a list.
|
|
|
* ```name```: the radio box's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```list```: an array of pairs of the form ```{integer, string}``` where ```integer``` is the id associated with ```string```
|
|
|
|
|
|
<table>
|
... | ... | @@ -1126,9 +1126,15 @@ elseif shape == 2 then emit(cube(10)) end |
|
|
```ui_combo(name, list)```
|
|
|
|
|
|
Creates a combo box to interactively choose a string value from a list.
|
|
|
* ```name```: the text input's name
|
|
|
* ```name```: the tweak's name
|
|
|
* ```list```: an array of strings
|
|
|
|
|
|
```ui_selectFile(name)```
|
|
|
|
|
|
Creates a button to select an existing file. The return value is the file path
|
|
|
* ```name```: the tweak's name
|
|
|
|
|
|
|
|
|
### Fields <a name="fields"></a>
|
|
|
|
|
|
Fields are UI objects for interactively building 3D textures. They are useful for carving, sculpting and specifying surfaces among other things.
|
... | ... | @@ -1299,7 +1305,7 @@ In addition to all other documented functions, the following also become availab |
|
|
Sets ```service``` as the current service to be used.
|
|
|
* ```service```: can be one of the following:
|
|
|
* ```'FilamentSlicer'```
|
|
|
* ````DLPSlicer```
|
|
|
* ```'DLPSlicer'```
|
|
|
* ```'LaserCutSlicer'```
|
|
|
* ```'MeshExportService'```
|
|
|
* ```'SVGSlicer'```
|
... | ... | |