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

Commit

Permalink
Nuke Payload: Fix farm renderering (Add Gizmos and plugins to the NUK…
Browse files Browse the repository at this point in the history
…E_PATH)
  • Loading branch information
BenSouchet committed Sep 11, 2024
1 parent d9731d0 commit 94175f9
Showing 1 changed file with 11 additions and 0 deletions.
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

0 comments on commit 94175f9

Please sign in to comment.