3DS Max - "job must include a script to execute"

I am trying to submit a job to deadline for a maxscript job, using maxscript.
I’ve taken the tutorial that Bobo posted and using some of the methods as outlined found(I think) the information that I need.
However when I submit the task to deadline I get a “FailRenderException” that states “A MAXScript job must include a script to execute”
If I open the Deadline UI and select my script, and submit that job, it processes just fine.
So: I assume that I am the failure, but I’ve checked in the documentation and cannot find any real solutions.

My code:

SMTDSettings.JobName = "Submitted from Script" SMTDSettings.MAXScriptFile = "S:/Alex Temp/Network Rendering Tests/Deadline/Deadline_Submit.ms" SMTDSettings.SubmitAsMXSJob = true
I’ve also tried:

SMTDSettings.JobName = "Submitted from Script" SMTDSettings.SubmitAsMXSJob = true SMTDSettings.MAXScriptFile = "S:/Alex Temp/Network Rendering Tests/Deadline/Deadline_Submit.ms"

I am using it inside of Bobo’s tutorial code like this:

[code](
global SMTDSettings
global SMTDFunctions

local theNetworkRoot = @"\ARC-3DMAIN\Deadline_Repository"
local remoteScript = theNetworkRoot + @"\submission\3dsmax\SubmitMaxToDeadline_Functions.ms"
fileIn remoteScript

SMTDFunctions.loadSettings()
–SMTDSettings.JobName = maxFileName + " [SIMPLE MXS SUBMISSION]"
SMTDSettings.JobName = “Submitted from Script”
SMTDSettings.MAXScriptFile = “S:/Alex Temp/Network Rendering Tests/Deadline/Deadline_Submit.ms”
SMTDSettings.SubmitAsMXSJob = true

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
)–end script[/code]
Any ideas?
Thanks!

I’ve also tried:

SMTDSettings.PostLoadScriptFile = "S:/Alex Temp/Network Rendering Tests/Deadline/Deadline_Submit.ms"

The same error is thrown.

Thank you so much Bobo!
I couldn’t figure that one out for the life of me.
It is now working wonderfully. Thanks again!

1 Like