Conversion Nodes
Convert between different data types such as numbers, vectors, booleans, and colors.
Conversion Nodes
Convert between different data types such as numbers, vectors, booleans, and colors.
This category contains 7 nodes.
Nodes
Boolean to Number
Converts boolean to number
Inputs: Boolean.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Boolean | bool | false |
| True Value | Number | any | 1 |
| False Value | Number | any | 0 |
Outputs: 1.0 if true, 0.0 if false.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Color to Number
Converts RGBWAUV color to DMX value by matching against a color map lookup table. -based matching in HSL space
Inputs: Color [0, 255], color map reference.
| Name | Type | Range | Default |
|---|---|---|---|
| Color | Color | color | [255, 0, 0, 0, 0, 0] |
| Color Map | ColorMap | cmap | {"name":"Default Colors","entries":[{"color":[255,255,255,0,0,0],"dmxValue":0},{"color":[255,0,0,0,0,0],"dmxValue":9},{"color":[255,165,0,0,0,0],"dmxValue":18},{"color":[127,255,212,0,0,0],"dmxValue":26},{"color":[0,128,0,0,0,0],"dmxValue":35},{"color":[144,238,144,0,0,0],"dmxValue":43},{"color":[230,230,250,0,0,0],"dmxValue":52},{"color":[255,192,203,0,0,0],"dmxValue":60},{"color":[255,255,0,0,0,0],"dmxValue":69},{"color":[255,0,255,0,0,0],"dmxValue":77},{"color":[0,255,255,0,0,0],"dmxValue":86},{"color":[0,0,139,0,0,0],"dmxValue":120}]} |
Outputs: DMX value [0, 255] for closest color match.
| Name | Type | Range |
|---|---|---|
| DMX Value | Number | any |
Degrees to Radians
Converts degrees to radians
Inputs: Angle in degrees.
| Name | Type | Range | Default |
|---|---|---|---|
| Degrees | Number | deg | 0 |
Outputs: Angle in radians (degrees * π/180).
| Name | Type | Range |
|---|---|---|
| Radians | Number | rad |
Degrees to Radians Vector
Converts degrees to radians for each component
Inputs: 3D vector with angles in degrees.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
Outputs: Vector with angles in radians.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Dynamic Color to Color
Converts a dynamic color (preset, gradient, or special type like rainbow) to a static RGBWAUV color
Inputs: DynamicColor object and opacity [0, 1].
| Name | Type | Range | Default |
|---|---|---|---|
| Dynamic Color | DynamicColor | dcolor | {"type":"preset","color":"primary"} |
| Opacity | Number | any | 1 |
Outputs: RGBWAUV color with values in range [0, 255], scaled by opacity.
| Name | Type | Range |
|---|---|---|
| Color | Color | color |
Radians to Degrees
Converts radians to degrees
Inputs: Angle in radians.
| Name | Type | Range | Default |
|---|---|---|---|
| Radians | Number | rad | 0 |
Outputs: Angle in degrees (radians * 180/π).
| Name | Type | Range |
|---|---|---|
| Degrees | Number | deg |
Radians to Degrees Vector
Converts radians to degrees for each component
Inputs: 3D vector with angles in radians.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
Outputs: Vector with angles in degrees.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |