diff --git a/openpype/plugins/publish/collect_context_entities.py b/openpype/plugins/publish/collect_context_entities.py index 312f5f0eb57..b130eec0be9 100644 --- a/openpype/plugins/publish/collect_context_entities.py +++ b/openpype/plugins/publish/collect_context_entities.py @@ -84,3 +84,5 @@ def process(self, context): context.data["frameEndHandle"] = frame_end_h context.data["fps"] = data["fps"] + + context.data["tools_env"] = data.get("tools_env", []) diff --git a/openpype/plugins/publish/collect_hierarchy.py b/openpype/plugins/publish/collect_hierarchy.py index 32f10ba4c8a..b31aba2543b 100644 --- a/openpype/plugins/publish/collect_hierarchy.py +++ b/openpype/plugins/publish/collect_hierarchy.py @@ -59,7 +59,8 @@ def process(self, context): "fps": instance.data["fps"], "resolutionWidth": instance.data["resolutionWidth"], "resolutionHeight": instance.data["resolutionHeight"], - "pixelAspect": instance.data["pixelAspect"] + "pixelAspect": instance.data["pixelAspect"], + "tools_env": context.data.get("tools_env", []) } # Split by '/' for AYON where asset is a path name = instance.data["asset"].split("/")[-1]