Custom Columns in Monitor

I am just starting with Deadline, and I would like to add one or two custom columns to the Job area of the monitor.

I want either one column that shows both the render width and height, or two columns that show them individually.

I know that there are 9 “Extra Info” Columns, but i don’t know how to pipe in this information so that it will display correctly.

There are a few posts that deal with this in general, but none that approach what i want to do specifically.

We are using Max 2012.

Thanks!

You could modify the 3dsmax submission script to inject the scene’s width and height as one or two ExtraInfo properties when submitting the job to Deadline. It requires modifying the out-of-the-box submitters, but the code you would have to write would be fairly straightforward. For example, in the CreateSubmitInfoFile function in \your\repository\submission\3dsmax\SubmitMaxToDeadline_Functions.ms, you could just add this line at the top:

SMTDSettings.ExtraInfo0 = (renderWidth as string) + "x" + (renderHeight as string)

Cheers,

  • Ryan

Thanks for the prompt response - do you mean this?

		fn CreateSubmitInfoFile filename customPlugin: customOutputFile: includeBothOutputs:false frameMode:#both customFrameSequence:"" =
		(
			
			SMTDSettings.ExtraInfo0 = (renderWidth as string) + "x" + (renderHeight as string)   

			--(here?)

			local formattedJobName = (SMTDFunctions.FormatJobName SMTDSettings.JobName)
			local formattedComment = (SMTDFunctions.FormatComment SMTDSettings.Comment)
						
			local submitInfoFile = CreateFile filename
			if (submitInfoFile != undefined) then
			(
			--tons of other code here...
			)
			else
				false
		),

Because if so, i could not get it to work - it threw an error when i tried to submit.

Any other suggestions appreciated.

Thanks!

Can you post the error?
The line looks good to me, so something else went wrong I assume.

Turns out the code I posted would only work with Deadline 5.1, which was released on Wednesday this week. This should work for 5.0:

fn CreateSubmitInfoFile filename customPlugin: customOutputFile: includeBothOutputs:false frameMode:#both customFrameSequence:"" =
      (
         local formattedJobName = (SMTDFunctions.FormatJobName SMTDSettings.JobName)
         local formattedComment = (SMTDFunctions.FormatComment SMTDSettings.Comment)
                  
         local submitInfoFile = CreateFile filename
         if (submitInfoFile != undefined) then
         ( 
              format "ExtraInfo0=%\n" ((renderWidth as string) + "x" + (renderHeight as string) ) to:submitInfoFile
               --tons of other code here...
         )
         else
            false
      ),

Hey Guys:

Must have been the version number. We have not upgraded to 5.1 yet.

I tried the second option, inside the - “if (submitInfoFile != undefined) then ()” - and it worked perfectly!

Thanks for the help!

quick question.

I updated the CreateSubmitInfoFile function in \your\repository\submission\3dsmax\SubmitMaxToDeadline_Functions.ms to include the render size in the ExtraInfo0 as mentioned above.

I get this to work on submission of 3dsmax files, and it shows up under the Jobs Panel in Monitor. I have also gone into Monitor as a SuperUser and changed the Options of Job Settings --> Extra Properties --> Extra Info 0 Name to “Render Size”

However, neither the render size, nor the change to the ExtraInfo0 Name Change show up under the Slaves Panel? This Field still remains “ExtraInfo0”. Why is that?

The SMTD ExtraInfo settings inject into the JobExtraInfo 0-9 fields and not the more recently introduced SlaveExtraInfo fields 0-9. The JobExtraInfo fields are meant to be for Job-centric information whilst the SlaveExtraInfo fields are for Slave/machine centric information. So your custom information would be displayed in the “Job Panel” and not the “Slave Panel”.