#!/usr/bin/env python3 """Copy shows/test.qxw to shows/gig.qxw, sending Art-Net to the rig. The test show sends Art-Net to 127.0.0.1 only, so it drives the simulator and never the rig (see CLAUDE.md). The gig show is the same show sending from the laptop's address on the gig network to the Art-Net node, as cabaret.qxw does. Everything else, from the pads to the console, is the test show's, so run this again after changing the test show. python3 scripts/shows/make_gig.py python3 scripts/shows/draw_test_pads.py gig # its pad layout picture Don't open gig.qxw on a network where 192.168.1.175 is the real node unless the rig should light up. """ from __future__ import annotations from mover_bank import ROOT TEST = ROOT / "shows" / "test.qxw" GIG = ROOT / "shows" / "gig.qxw" LAPTOP = "192.168.1.143" # the laptop's address on the gig network, as in cabaret.qxw LINE = 1 # QLC+'s Art-Net line for it there NODE = "192.168.1.175" TEST_OUTPUT = ' \n' GIG_OUTPUT = (f' \n' f' \n' ' \n') def main() -> None: xml = TEST.read_text() if xml.count(TEST_OUTPUT) != 1: raise SystemExit(f"{TEST.relative_to(ROOT)} doesn't have its one Art-Net output to 127.0.0.1") GIG.write_text(xml.replace(TEST_OUTPUT, GIG_OUTPUT, 1)) print(f"Copied {TEST.relative_to(ROOT)} to {GIG.relative_to(ROOT)}, sending Art-Net to {NODE}") if __name__ == "__main__": main()