Knob
The knob object allows users to input a value by rotating a knob.
The knob can be rotated by dragging it with the mouse or by using the arrow keys.
The value is sent as a command to the server:
-
when the user changes it, if
Auto Send
it true -
when a button with
submit
action is pressed (sending multiple fields at once)
Attributes
Common
ID
Sets the object's ID.
The ID identifies the object and is used to reference it in UISet actions, allowing to change its attributes dynamically.
The ID is not unique, it can be shared among multiple objects to quickly change a common attribute.
IDs can't be changed with a UISet action, but they can have a Value Binding assigned to them. Value Bindings on IDs allow an object to be dinamically attached to a set of attribute values.
E.g. the following Value Binding switches the ID of the object between mybutton1
and mybutton2
based on the value of the UISet button.address
:
Value binding:
="mybutton" + ui('button', 'address')
UISet:
UISet('button', 'address', '1')
switches the ID to mybutton1
UISet('button', 'address', '2')
switches the ID to mybutton2
Position and Size
Position
Sets the object's position.
The default
value is: x0y0
.
Attribute Values
Value | Description | Example |
---|---|---|
x<left>y<top> | Specify left/top coordinates in pixels. | x10y20 |
Flex Grow
Specifies if the objects should grow to fill the available space.
The default
value is: true
.
Attribute Values
Value | Description |
---|---|
true | Default value. Objects expand to fill the available space. |
false | Objects do not grow to fill the available space. |
Flex Shrink
Specifies if the objects should shrink to fit the available space.
The default
value is: true
.
Attribute Values
Value | Description |
---|---|
true | Default value. Objects shrink to fit the available space. |
false | Objects do not shrink to fit the available space. |
Width
Sets the object's width in pixels.
Minimum value is 1.
Height
Sets the object's height in pixels.
Minimum value is 1.
Action
Action
Specifies the action to be performed when the user moves the slider.
The default
value is: none
.
Attribute Values
Value | Description |
---|---|
none | Default value. No action. |
command | Sends a command. |
datapoint | Sets a datapoint. |
Name
Specifies the name of the command.
The default
value is: =id
.
Attribute Values
Value | Description |
---|---|
<string> | Command name. |
DMX Address
Specifies the DMX address.
Attribute Values
Value | Description |
---|---|
<string> | DMX address. |
Datapoint
Specifies the datapoint.
Attribute Values
Value | Description |
---|---|
<datapoint> | Datapoint. |
Value
Value
Specifies the value of the datapoint.
The default
value is: 0
.
Attribute Values
Value | Description |
---|---|
<string> | Value. |
Range
Specifies the range of the slider.
The default
value is: 0,100
.
Attribute Values
Value | Description |
---|---|
<min,max> | Min, max values. |
Unit
Unit displayed on value label, or % for percentage.
Attribute Values
Value | Description |
---|---|
<string> | Displays the unit after the value. |
% | Displays the value as percentage. If there's a custom range (different from 0-100) the percentage is calculated. |
Change Delay
Defines the time interval between value changes for sending values to the server.
The default
value is: 50
.
Attribute Values
Value | Description |
---|---|
<number> | Delay in milliseconds. |
Inverse
Specifies wether the slider is inverted.
The default
value is: false
.
Attribute Values
Value | Description |
---|---|
false | Default value. Normal. |
true | Inverted. |
Layout
Label
Specifies a label for the slider.
Attribute Values
Value | Description |
---|---|
<string> | Label. |
Orientation
Specifies the orientation of the slider.
The default
value is: horizontal
.
Attribute Values
Value | Description |
---|---|
horizontal | Default value. Horizontal. |
vertical | Vertical. |
Panel
Shows a panel that frames the object. Its style can be modified.
The default
value is: true
.
Attribute Values
Value | Description |
---|---|
true | Default value. Shows the panel. |
false | Hides the panel. |
Display Value
Specifies wether the value is displayed.
The default
value is: false
.
Attribute Values
Value | Description |
---|---|
false | Default value. Hides the value. |
true | Shows the value. |