Group#
Note
Not applicable to VLC/VLC+
Functions#
master_intensity#
master_intensity(params, callback)
Propagates to all controllers in a project.
params
is expected to be an object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
integer |
Group number. Group 0 means the All Fixtures group. |
|
|
float or string containing a bounded integer |
Master level to set on the group |
|
|
float |
Optional. Fade time to apply the intensity change, in seconds. |
|
|
float |
Optional. Time to wait before applying the intensity change, in seconds. |
|
For example:
// Master group 1 to 50% in 3 seconds
Query.master_intensity({
"num":1,
"level":"50:100",
"fade":3
}, result => {
// Check for error
})
get_group_info#
Returns data about the fixture groups in the project.
get_group_info(callback[, num])
Returns an object with a single groups
attribute, which has an array value. Each item in the array is a Group object with the same attributes as in the HTTP GET response.
num
can be used to filter which groups are returned and is expected to be a JSON object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
string or integer |
Define the numbers of the group that should be returned |
|
Note
Group 0 will return data about the All Fixtures group.
For example:
Query.get_group_info(g => {
let name = g.groups[0].name // name of the first group returned
}, {"num":"2-4"})