Shotgun question

Hi All, Just seeing if anyone on here can get back to me before thinkbox support or shotgun support can. I'm trying to upload versions to shotgun via deadline. So far I have this:

--load Deadline commands
global SMTDSettings
global SMTDFunctions
global SMTDPaths --Bobos new line
fileIn @"\\CLUSTER\Resources\DEADLINE7\submission\3dsmax\main\SubmitMaxToDeadline_Functions.ms" 
 
--Deadline Function, LoadSettings() are required for sending render just before running function
fn DeadlineSubmit = (
local maxFileToSubmit = SMTDPaths.tempdir + maxFileName
SMTDFunctions.SaveMaxFileCopy maxFileToSubmit
 
local SubmitInfoFile = SMTDPaths.tempdir + "\\max_submit_info.job"
local JobInfoFile = SMTDPaths.tempdir  + "\\max_job_info.job"
 
SMTDFunctions.CreateSubmitInfoFile SubmitInfoFile 
SMTDFunctions.CreateJobInfoFile JobInfoFile  
 
local initialArgs="\""+SubmitInfoFile+"\" \""+JobInfoFile+"\" \""+maxFileToSubmit+"\" " 
SMTDFunctions.waitForCommandToComplete initialArgs SMTDSettings.TimeoutSubmission
)
 
SMTDFunctions.loadSettings()
SMTDSettings.JobName = maxFileName + " [GI]"
SMTDSettings.SubmitAsSuspended = false
 
SMTDSettings.ProjectManagement = "Shotgun"
 
SMTDSettings.SGVersion= "test01"
SMTDSettings.SGDescription = "fuck yeah"
 
SMTDSettings.SGUser = "johncrawshaw"
SMTDSettings.SGTask = "Versions"
SMTDSettings.SGProject = "P332_RELAY_BUILDING"
SMTDSettings.SGEntity = "V01_RECEPTION"
 
SMTDSettings.DraftSubmitJob = true
SMTDSettings.DraftShotgunUpload = true
 
SMTDSettings.SGUpdate = true
SMTDSettings.SGDisplayInfo = #()
SMTDSettings.SGJobSettings = #()
 
DeadlineSubmit();

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
victorgilbert's picture

Seems you have a great

Seems you have a great expertise. Thanks for sharing the info.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.