TwistedBrush Lua Filter User Interface Directives
Within a comment in the Lua script a directive can be defined for creating up to 6 user slider controls and up to 6 check box controls that appear within the TwistedBrush Filter dialog. This allows users to dynamically adjust values in the script without ever needing to look at a script. In addition this also allows for the filters to be recorded like all the other filters in TwistedBrush. The format of this directives are:
[email protected] VARIANT: name, default value
[email protected] SLIDER: name, default value
[email protected] SLIDERV2: name, value, start range, end range, increment, decimal places, units
[email protected] FLAG: name, default value
[email protected] STYLE: name, default index, choice1, choice2, ... choice20
[email protected] INFO: message for the info box.
Example of the user interface directives
For example these three lines in a script will define three sliders Red, Green and Blue with values of a middle gray.
[email protected] SLIDER: Red, 50.0
[email protected] SLIDER: Green, 50.0
[email protected] SLIDER: Blue, 50.0
Above is the Filter dialog that shows the sliders that will be created based on the directives. However, the sample image shows values of 100.0 for each rather than the default shown above (it's a screen shot from a different example)