Give the test show Dimmers knobs instead of the custom colour mixer, and add Amber.
The colour scenes leave the dimmers to Level sliders on knobs 15, 5, 7 and 8. The Chataigne export carries Level sliders and their starting values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
11da656ee6
commit
2219788904
7 files changed
+1994
-2821
No files matched your search
@@ -67,9 +67,13 @@ def collect(show: dict, stage: dict) -> dict:
|
||||
pads, sliders = [], []
|
||||
for widget in frame.get("children", []):
|
||||
kind = widget["type"]
|
||||
function = functions[widget["function"]]
|
||||
binding = widget.get("input") or {}
|
||||
levels = absolute_levels(show, stage, function["values"])
|
||||
if "function" in widget:
|
||||
function = functions[widget["function"]]
|
||||
values = function["values"]
|
||||
else: # a Level slider: its channels at full, scaled by the slider
|
||||
values = {fixture: {channel: 255} for fixture, channel in widget.get("channels", [])}
|
||||
levels = absolute_levels(show, stage, values)
|
||||
if kind == "button" and "note" in binding:
|
||||
pads.append({
|
||||
"id": ident("c", number, widget["caption"]),
|
||||
@@ -81,12 +85,13 @@ def collect(show: dict, stage: dict) -> dict:
|
||||
"fade": [function.get("fade_in") or 0, function.get("fade_out") or 0],
|
||||
"levels": levels,
|
||||
})
|
||||
elif kind == "slider" and "cc" in binding:
|
||||
elif kind == "slider":
|
||||
sliders.append({
|
||||
"id": ident("s", number, widget["caption"]),
|
||||
"box": box(frame, widget),
|
||||
"fg": widget.get("fg", [255, 255, 255]),
|
||||
"cc": binding["cc"][1],
|
||||
"cc": binding["cc"][1] if "cc" in binding else -1, # -1: dashboard only
|
||||
"value": round(int(widget.get("value", 0)) / 255, 3),
|
||||
"name": widget["caption"],
|
||||
"levels": levels,
|
||||
})
|
||||
@@ -133,7 +138,7 @@ def render_data(groups: dict) -> str:
|
||||
lines.append(" sliders: [")
|
||||
for slider in group["sliders"]:
|
||||
lines.append(
|
||||
f" {{id: {json.dumps(slider['id'])}, cc: {slider['cc']}, name: {json.dumps(slider['name'])}, levels: {js_levels(slider['levels'])}}},"
|
||||
f" {{id: {json.dumps(slider['id'])}, cc: {slider['cc']}, name: {json.dumps(slider['name'])}, value: {slider['value']}, levels: {js_levels(slider['levels'])}}},"
|
||||
)
|
||||
lines.append(" ]")
|
||||
lines.append(" },")
|
||||
|
||||
Reference in new issue
Block a user