ScriptSpot

Forum topic · General Scripting

Shotgun question

By johncrawshaw · 2015-02-03

Description

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 (2)

this Rox

meGabriel · 2019-09-19

Hope you sorted it out! Your SDGdescription made me laugh as usual :D I also put some funy text when playing games.

victorgilbert · 2015-02-09

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