Drop the movers' chases and put Wander and Ballyhoo on the top row.

The movers layer loses its Chase, Chase reverse, Zigzag and Opposing pads,
with their runs, holds, colour matrices, fixture groups and Speed dial
entries. Wander and Ballyhoo move up to pads 13 and 14 (notes 96 and 97),
and the pad controller settles the knobs after those notes instead
(scripts/shows/mover_pads_top_row.py).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-10-23 01:46:18 +13:00
1 parent 913494c0aa
commit ae186c51ea
4 files changed
+89 -693

No files matched your search

+71
View File
@@ -0,0 +1,71 @@
#!/usr/bin/env python3
"""Drop the movers' chases from shows/test.qxw and put Wander and Ballyhoo on the top row.
The movers layer loses its Chase, Chase reverse, Zigzag and Opposing pads
(notes 96–99), their runs, holds, colour matrices and fixture groups, and their
place on the Speed dial. Wander and Ballyhoo move up from notes 93 and 94 to
the first two pads of the top row:
96 Wander pad 13 on the movers layer
97 Ballyhoo pad 14 on the movers layer
The movers' Strobe (92) and Peak stay. padcontroller/layer.py settles the knobs
after notes 96 and 97.
python3 scripts/shows/mover_pads_top_row.py
Run it once on a show with the mover chases; it stops if they are gone.
QLC+ has to reopen the show to see it.
"""
from __future__ import annotations
import re
from mover_bank import (F_DIMMER, F_OPP, GROUP_OPPOSING, GROUP_RINGS, GROUP_ZIGZAG, ROOT, note)
SHOW = ROOT / "shows" / "test.qxw"
CHASE_FUNCTIONS = range(F_DIMMER, F_OPP + 1) # 57–63
CHASE_GROUPS = (GROUP_RINGS, GROUP_ZIGZAG, GROUP_OPPOSING)
CHASE_PADS = ("Chase", "Chase reverse", "Zigzag", "Opposing")
TOP_ROW = (("Wander", 10, note(48)), ("Ballyhoo", 100, note(49)))
def cut(xml: str, pattern: str) -> str:
xml, n = re.subn(pattern, "", xml, count=1, flags=re.S)
assert n == 1, pattern
return xml
def main() -> None:
xml = SHOW.read_text()
if 'Name="Movers chase forward run"' not in xml:
raise SystemExit(f"{SHOW.relative_to(ROOT)} has no mover chases")
for fid in CHASE_FUNCTIONS:
xml = cut(xml, rf' <Function ID="{fid}" Type=.*?\n </Function>\n')
xml = re.sub(rf' <Function FadeIn="0" FadeOut="0" Duration="\d+">{fid}</Function>\n', "", xml)
for gid in CHASE_GROUPS:
xml = cut(xml, rf' <FixtureGroup ID="{gid}">\n.*? </FixtureGroup>\n')
pads = re.search(r' <Frame Caption="Movers pads" ID="\d+">\n.*?\n </Frame>\n', xml, re.S).group(0)
kept = pads
for caption in CHASE_PADS:
kept = cut(kept, rf' <Button Caption="{caption}" ID="\d+" Icon="">\n.*? </Button>\n')
for caption, x, channel in TOP_ROW:
kept, n = re.subn(rf'( <Button Caption="{caption}" ID="\d+" Icon="">\n <WindowState Visible="True" X=")\d+" Y="\d+"'
rf'(.*?<Input Universe="1" Channel=")\d+"',
rf'\g<1>{x}" Y="10"\g<2>{channel}"', kept, count=1, flags=re.S)
assert n == 1, caption
xml = xml.replace(pads, kept, 1)
for caption in ("Movers chase runs", "Movers chase colours"):
xml = cut(xml, rf' <Frame Caption="{caption}" ID="\d+">\n.*?\n </Frame>\n')
assert not re.search(rf'(?:Function ID="|>)(?:{"|".join(map(str, CHASE_FUNCTIONS))})(?:"|<)', xml)
SHOW.write_text(xml)
print(f"Dropped the mover chases from {SHOW.relative_to(ROOT)}; Wander and Ballyhoo are on notes 96 and 97")
if __name__ == "__main__":
main()