Skip to content

Commit 8bf898e

Browse files
committed
Improve MVR export
1 parent a081cbb commit 8bf898e

File tree

2 files changed

+188
-55
lines changed

2 files changed

+188
-55
lines changed

fixture.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,7 @@ def to_mvr_fixture(self, universe_add=False):
27702770
if obj.object.get("geometry_root", False):
27712771
matrix = self._matrix_to_mvr_units(obj.object.matrix_world)
27722772
if "Target" in obj.name:
2773-
uuid_focus_point = obj.object.get("uuid", None)
2773+
uuid_focus_point = obj.object.get("Target ID", None)
27742774

27752775
r, g, b = list(self.gel_color_rgb)[:3]
27762776
x, y, z = rgb2xyY(r, g, b)
@@ -2803,8 +2803,10 @@ def focus_to_mvr_focus_point(self):
28032803
if "Target" in obj.name:
28042804
matrix = None
28052805
uuid_ = None
2806+
uuid_ = obj.object.get("Target ID", None)
2807+
if uuid_ is None:
2808+
return
28062809
matrix = self._matrix_to_mvr_units(obj.object.matrix_world)
2807-
uuid_ = obj.object.get("uuid", None)
28082810
if matrix is None or uuid_ is None:
28092811
DMX_Log.log.error("Matrix or uuid of a Target not defined")
28102812
return

0 commit comments

Comments
 (0)