Skip to content

Commit

Permalink
Make internal programmer to also set values for Live DMX view
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Jun 23, 2024
1 parent 41a04fe commit ea2df8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ def set(universe, addr, val):
dmx.dmx_values[addr-1].channel=val
DMX_Data._universes[universe][addr-1] = val

# LiveDMX view
if DMX_Data._dmx is not None:
dmx = bpy.context.scene.dmx # ...or maybe it prevents using this call before the class is ready?
selected_live_dmx_universe = dmx.get_selected_live_dmx_universe()
if selected_live_dmx_universe is None: # this should not happen
raise ValueError("Missing selected universe, as if DMX base class is empty...")
if selected_live_dmx_universe.input == "BLENDERDMX" and selected_live_dmx_universe.id == universe:
DMX_Data._live_view_data = DMX_Data._universes[universe]

@staticmethod
def set_virtual(fixture, attribute, value):
"""Set value of virtual channel for given fixture"""
Expand Down

0 comments on commit ea2df8b

Please sign in to comment.