Extending the Fusion Submitter and Sanity Checks

I’ve got a question regarding Deadline’s Custom Sanity Checks and the Fusion Submitter.

We have several Limit Groups in place to manage floating license. I’d like write some code that auto-populates the “limits” submitter field based on information gleaned from the comp. Deadline provides a “CustomSanityChecks.eyeonscript” to allow for extending submissions, however, just at quick glance, it seems this is really just to alert the user via the “message” return value. I can set other vars in this file and pass them back to the “SubmitToDeadline.eyeonscript” file but I then need to do some script modifications in the “SubmitToDeadline.eyeonscript” file which seems to negate the use of the “CustomSanityChecks.eyeonscript” script file.

Are there any recommendations for auto-populating the SubmitToDeadline dialog? Should I just bite the bullet and modify the SubmitToDeadline.eyescript?

Here is an old bit of code from the CustomSanityChecks.eyeonscript file that we used to use in production for the RSMB plugin. It would automatically append the df_dfmb limit group to the DEADLINE_LimitGroups property so that the user wouldn’t have to worry about it:

	rsmbAttrs = fusion:GetRegAttrs("REVisionEffects.RSMotionBlur3")
	if not (rsmbAttrs == nil) then
		rsmb_regID = rsmbAttrs.REGS_ID
		local i = nil
		for i, v in comp:GetToolList() do
			if string.find( v:GetID(), rsmb_regID ) ~= nil then
				print( "Detected RSMotionBlur3 tool, submitting to df_dfmb limit" )
				
				limitGroups = fusion:GetData( "DEADLINE_LimitGroups" )
				if( limitGroups == nil or limitGroups == "" ) then
					limitGroups = "df_dfmb"
				else
					limitGroups = limitGroups .. ",df_dfmb"
				end
				fusion:SetData("DEADLINE_LimitGroups", limitGroups)
				break
			end
		end
	end

Hope this helps!

  • Ryan

Ryan,

That’s a terrific help. Thanks a bunch!

it took me a bit to debug why my code wasn’t passing the limit group data from my CustomSanityChecks to the SubmitToDeadline script. Turns out I had this:

defaultLimitGroups = fusion:GetData("DEADLINE_LimitGroups2")

in my SubmitToDeadline.eyeonscript. When it should have been:

defaultLimitGroups = fusion:GetData("DEADLINE_LimitGroups")

Don’t know how that was changed, but after changing it back to “DEADLINE_LimitGroups”, it works great. Thanks for the help.