Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[QUAD] Enhancement: Add tools_env to data context entities #6296

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openpype/plugins/publish/collect_context_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", [])
3 changes: 2 additions & 1 deletion openpype/plugins/publish/collect_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading