AWS Thinkbox Discussion Forums

Custom multicam submitter not saving all vray raw outputs when using DBR

Hello!

I have a custom submitter which submits multiple selected cameras (in order of selection) whilst only saving the Max scene once (big time saver!).
It saves out a jpg via the standard Max output + EXR via the Vray RAW output.
(setup: Max 2019 + Vray Next update3 + Deadline 10.1)

When using Vray distributed rendering (DBR) I get an EXR saved only for the first camera sent. (all Jpgs save fine)
Without DBR, all JPGs and EXRs save fine.

General code structure:

fn SubmitToDeadline DoSaveMaxScene =
(
	Apply all SMTDSettings as required……..
	ActvCAM = GetActiveCamName()
	SMTDFunctions.RebuildRenderElements()
	SMTDFunctions.RenderElementsUpdatePaths()

	maxFileToSubmit = SMTDPaths.tempdir + maxFileName
	if DoSaveMaxScene do (SMTDFunctions.SaveMaxFileCopy maxFileToSubmit)

	local SubmitInfoFile = SMTDPaths.tempdir + "\\max_submit_info_" + ActvCAM + ".job "
	local JobInfoFile = SMTDPaths.tempdir + "\\max_job_info_" + ActvCAM + ".job"
	SMTDFunctions.CreateSubmitInfoFile SubmitInfoFile 
	SMTDFunctions.CreateJobInfoFile JobInfoFile

	local initialArgs="\""+SubmitInfoFile+"\" \""+JobInfoFile+"\" \""+maxFileToSubmit+"\" "
	local result = SMTDFunctions.waitForCommandToComplete initialArgs SMTDSettings.TimeoutSubmission
)

For c = 1 to camlist.count do
(
	viewport.setCamera camlist[c]
	completeRedraw()	--helps user feedback whilst submitting
	ApplyPaths()   --checks all folder paths exist + builds path strings + apply paths
	renderSceneDialog.commit()
	SubmitToDeadline (c == 1)   -- c==1 is true only once, for the first cam submitted 
)

Any help much appreciated!

Hello @GrahamMac ,
can you share ms file?
I’d like to test this workflow on Deadline 10.3.0.15.
Thank you.

Sorry, bzyk_byk.

I am not able to share this.
It’s a monster script, I’ve been slaving over for the last 3-4 years. :slight_smile:

1 Like
Privacy | Site terms | Cookie preferences