Conversion Nodes
Convert Booleans and colors to numbers, dynamic colors to colors, and angles between degrees and radians.
This category contains 7 nodes.
Nodes
Boolean to Number
Converts true or false to a number, with a value you set for each state.
Inputs: The Boolean and the numbers to output for true and for false.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Boolean | bool | false |
| True Value | Number | any | 1 |
| False Value | Number | any | 0 |
Outputs: The corresponding number value.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Color to Number
Finds the closest matching color in a color map and returns its value. Use it to drive fixtures with a color wheel.
Inputs: The color to match and the color map to look it up in.
| 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],"dmx_value":0},{"color":[255,0,0,0,0,0],"dmx_value":9},{"color":[255,165,0,0,0,0],"dmx_value":18},{"color":[127,255,212,0,0,0],"dmx_value":26},{"color":[0,128,0,0,0,0],"dmx_value":35},{"color":[144,238,144,0,0,0],"dmx_value":43},{"color":[230,230,250,0,0,0],"dmx_value":52},{"color":[255,192,203,0,0,0],"dmx_value":60},{"color":[255,255,0,0,0,0],"dmx_value":69},{"color":[255,0,255,0,0,0],"dmx_value":77},{"color":[0,255,255,0,0,0],"dmx_value":86},{"color":[0,0,139,0,0,0],"dmx_value":120}]} |
Outputs: The value of the best matching color.
| Name | Type | Range |
|---|---|---|
| DMX Value | Number | any |
Degrees to Radians
Converts an angle from degrees to radians. 180 degrees becomes about 3.14 radians.
Inputs: An angle in degrees.
| Name | Type | Range | Default |
|---|---|---|---|
| Degrees | Number | deg | 0 |
Outputs: The angle in radians.
| Name | Type | Range |
|---|---|---|
| Radians | Number | rad |
Degrees to Radians Vector
Converts each component from degrees to radians.
Inputs: A 3D vector of angles in degrees.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
Outputs: The vector with each angle in radians.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Dynamic Color to Color
Converts a dynamic color (a preset, gradient, or rainbow) to a standard color, so you can wire it into nodes that take a Color.
Inputs: A dynamic color and an opacity (0 to 1).
| Name | Type | Range | Default |
|---|---|---|---|
| Dynamic Color | DynamicColor | dcolor | {"type":"preset","color":"primary"} |
| Opacity | Number | any | 1 |
Outputs: A standard color at the given opacity.
| Name | Type | Range |
|---|---|---|
| Color | Color | color |
Radians to Degrees
Converts an angle from radians to degrees. 3.14 radians becomes about 180 degrees.
Inputs: An angle in radians.
| Name | Type | Range | Default |
|---|---|---|---|
| Radians | Number | rad | 0 |
Outputs: The angle in degrees.
| Name | Type | Range |
|---|---|---|
| Degrees | Number | deg |
Radians to Degrees Vector
Converts each component from radians to degrees.
Inputs: A 3D vector of angles in radians.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
Outputs: The vector with each angle in degrees.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |