Essential Sanity Check

This should be flagged up in the built in sanity checks… if you don’t have any active tiles in Jigsaw rendering checked you won’t get a submission which is problematic if you use an automated submission system like us!

fn CheckActiveJigsawTiles =
(
if SMTDSettings.RegionRenderingMode == #singleFrameMultiRegion or SMTDSettings.RegionRenderingMode == #animationMultiRegion then
(for o in SMTDSettings.MultiRegionData where (o)[1] == true collect true).count != 0
else
true
)

I will bring it up with the folks who maintain SMTD (Mike and Bobo)

Thanks for spotting! :slight_smile:

Hi Dave,
We already check for “activeRegions” at the beginning of the “SubmitJobFromUI” function in *_Functions.ms and the submission will fail out if there are no active regions. Are you using Deadline v7.x or just to check, are you saying that your automatic submission system side steps the use of the “SubmitJobFromUI” function and that is why you have implemented it as a private sanity check, which is probably the best thing to do in your custom setup here?

Still on 6.2 so that’ll be why Mike :slight_smile:

Oh…actually, going through my notes, it looks like we back-ported quite a few SMTD fixes/little features from the v7.x platform into the latest v6.2 maintenance release which was v6.2.1.50, so if you update to this latest version you should have it available, without having to upgrade to v7.x. I’m guessing your currently on v6.2.0.32 or earlier?

Deadline Version: 6.2.1.50 R

Strange! I just re-installed v6.2.1.50 repository installer locally here and in the _Functions.ms file around line: #8556, I can see the checks here:

[code] --some additional sanity checking…
local tilesRendering = findItem #(#animationTiles, #singleFrameTiles) SMTDSettings.RegionRenderingMode > 0
local multiRegionRendering = findItem #(#singleFrameMultiRegion, #animationMultiRegion) SMTDSettings.RegionRenderingMode > 0

		local activeRegions = 0
		local badRegions = 0
		for i in SMTDSettings.MultiRegionData  do
		(
			if i[1] == True do activeRegions+=1
			if i[4] == 0 or i[5] == 0 do badRegions +=1
		)
				
		if multiRegionRendering  do 
		(
			if activeRegions == 0 do
			(
				try(SMTD_MainRollout.sld_lastSubmissionState.color = red)catch()
				return "--FAILED: Multi-Region Rendering Requested, But No Active Regions Found!"
			)
			if badRegions > 0 do
			(
				try(SMTD_MainRollout.sld_lastSubmissionState.color = red)catch()
				return "--FAILED: Multi-Region Rendering - Bad Regions With ZERO Width Or Height!"
			)
		)[/code]

Yes the message does pop-up in the dialog but because we have a simple automated system for sending prepass calcuations for Tiles rendering it wasn’t obvious for our artists as to why they had a prepass job but no render job.

I’ve implemented it in our private sanity checks as it should warn you before you press render not just fail the submission.

OK, thanks for confirming. I’ve gone ahead and added this general sanity check and it will appear in v7.1 beta 3:

“SMTD_SanityCheckFunctions.CheckForActiveJigsawRegions”

Thanks for the feedback!

Top Banana.