StageParser
Parse MVR (My Virtual Rig) stage files and extract DMX fixture data, organized by universe. Built for automating venue configuration in TouchDesigner and Unreal Engine.
Uses python-mvr for MVR parsing and pygdtf for GDTF fixture data.
Installation
Requires Python 3.12+ and uv.
# Clone and install
git clone <repo-url>
cd StageParser
uv sync
CLI Usage
# Full JSON output (organized by universe)
stageparser venue.mvr
# Summary view
stageparser venue.mvr --summary
# YAML output
stageparser venue.mvr -f yaml
# Filter by universe
stageparser venue.mvr -u 1
# Save to file
stageparser venue.mvr -o output.json
Example Summary Output
{
"mvr_file": "SimpleStage.mvr",
"mvr_version": "1.6",
"provider": "pymvr",
"fixture_count": 1,
"universes": [1],
"fixtures": [
{
"name": "TB 1230 QW",
"manufacturer": "ACME",
"model": "ACME DOTLINE360 (TB-1230 QW)",
"universe": 1,
"address": 1,
"channel_count": 57
}
]
}
Programming API
from stageparser import Stage
stage = Stage("venue.mvr")
# List universes
stage.list_universes() # [1, 2, 3]
# List fixtures (all or by universe)
stage.list_fixtures() # all fixtures
stage.list_fixtures(universe=1) # fixtures in universe 1
# Get specific fixture
fixture = stage.get_fixture(universe=1, address=1)
fixture.name # "TB 1230 QW"
fixture.manufacturer # "ACME"
fixture.model # "ACME DOTLINE360 (TB-1230 QW)"
fixture.channel_count # 57
fixture.gdtf_mode # "Mode 1 57 DMX"
# Find fixtures by name
stage.get_fixture_by_name("dotline") # case-insensitive search
stage.get_fixture_by_uuid("30b410fb-...")
# Channel data
fixture.channels # list of ChannelInfo
fixture.channel_map() # {1: "Tilt", 2: "Tilt", 3: "PT Speed", ...}
fixture.channels_by_geometry() # {"Head": [...], "Pixel 1": [...], ...}
# Shorthand channel queries
stage.get_channels(1, 1) # channels for universe 1, address 1
stage.get_channel_map(1, 1) # {offset: attribute} dict
stage.get_channels_by_geometry(1, 1) # channels grouped by geometry
# Position & rotation
fixture.transform.x # mm (MVR convention)
fixture.transform.y
fixture.transform.z
fixture.transform.rotation # 3x3 rotation matrix
# Physical data
fixture.physical.weight_kg
fixture.physical.beams # list of BeamInfo
fixture.physical.models # list of ModelDimensions
# Beam properties
for beam in fixture.physical.beams:
beam.luminous_flux # lumens
beam.beam_angle # degrees
beam.color_temperature # Kelvin
beam.power_consumption # watts
beam.lamp_type
beam.beam_type
# Shorthand physical queries
stage.get_lumens(1, 1) # total lumens across all beams
stage.get_weight(1, 1) # weight in kg
stage.get_physical(1, 1) # full PhysicalInfo
stage.get_beams(1, 1) # list of BeamInfo
# Full export
stage.to_dict() # complete data organized by universe
stage.summary() # brief overview
Data Models
| Model | Description |
|---|---|
StageData |
Top-level container with all fixtures |
FixtureInfo |
Complete fixture: identity, DMX, channels, transform, physical |
ChannelInfo |
Single DMX channel: offset, attribute, geometry, bit depth |
DmxAddress |
Universe + address + break |
Transform |
Position (mm) + 3x3 rotation matrix |
PhysicalInfo |
Weight, beams, model dimensions |
BeamInfo |
Lumens, beam angle, color temp, power, lamp/beam type |
ModelDimensions |
Name, length, width, height (meters) |
Channel Map
For the ACME DOTLINE360 in Mode 1 (57 DMX channels):
| Offset | Attribute | Geometry | Bit Depth |
|---|---|---|---|
| 1-2 | Tilt | Head | 16-bit |
| 3 | PT Speed | Head | 8-bit |
| 4 | Zoom | Array 1 | 8-bit |
| 5 | Zoom | Array 2 | 8-bit |
| 6-7 | Dimmer | Head | 16-bit |
| 8 | Shutter1 | Head | 8-bit |
| 9-32 | RGBW x 6 | Pixel 1-6 | 8-bit each |
| 33-56 | RGBW x 6 | Pixel 7-12 | 8-bit each |
| 57 | Function | Head | 8-bit |
License
MIT
Metadata
Release files for stageparser 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stageparser-0.3.0.tar.gz | 10.1 kB | Without provenance | Details for stageparser-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stageparser-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for stageparser-0.3.0-py3-none-any.whl |
Total release size: 23.1 kB
Release files / stageparser-0.3.0.tar.gz
| Download URL | stageparser-0.3.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bf98003887376100f68f86065c420bad5babf28051e3a092a50f690ecdc5479
|
|
BLAKE2b-256 checksum How to use checksums |
d165afa5dd02c5ca653288c6c0c7c5e43e5d42eeb5f341df321313ea6672027d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / stageparser-0.3.0-py3-none-any.whl
| Download URL | stageparser-0.3.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26509ebbca0c03acd13496126fd97fffd9cf70ecf155659a5e9719d1427ede9b
|
|
BLAKE2b-256 checksum How to use checksums |
911ce9419b0f9dde52ab764f111c83d6a5efd425e3c15c2cc0867536113f77e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for stageparser 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.