This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from System.IO import * | |
from Deadline.Events import * | |
from Deadline.Scripting import * | |
import os | |
def set_slave_specific_shotgun_home_path(deadlinePlugin): | |
''' | |
In situations where you have multiple deadline Slaves on a single rendernode | |
Shotgun may fail to bootstrap a pipelineconfig if more than one slave |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this code needs to be inserted into your SubmitNukeToDeadline script if you are using deadline's submission script. | |
###### INSERT AFTER THIS LINE, line 1308 in my file | |
#if groupBatch or dialog.separateJobs.value(): | |
# fileHandle.write(EncodeAsUTF16String("BatchName=%s\n" % batchName)) | |
# Populating environment variables from running Nuke: | |
# http://developer.shotgunsoftware.com/tk-core/platform.html#sgtk.platform.create_engine_launcher | |
current_engine = sgtk.platform.current_engine() | |
launcher = sgtk.platform.create_engine_launcher( |