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

[QUAD] Nuke Payload: Fix farm renderering (Add Gizmos and plugins to the NUKE_PATH) #6310

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
11 changes: 11 additions & 0 deletions openpype/modules/deadline/plugins/publish/submit_nuke_deadline.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,17 @@ def payload_submit(
if self.env_allowed_keys:
keys += self.env_allowed_keys

# Not all hosts can import this module.
import nuke

# Add all gizmos and plugin paths to the NUKE_PATH for the render farm
nuke_path = os.environ.get("NUKE_PATH", "")
nuke_paths = [path for path in nuke_path.split(os.pathsep) if path]
for nuke_plugin_path in nuke.pluginPath():
if nuke_plugin_path not in nuke_paths:
nuke_paths.append(nuke_plugin_path)
os.environ["NUKE_PATH"] = os.pathsep.join(nuke_paths)

environment = dict({key: os.environ[key] for key in keys
if key in os.environ}, **legacy_io.Session)

Expand Down
Loading