When we do a show SMTD_functions from maxscript the is not BatchName variable?
I can find it just fine when I submit from cmd, but not sure how to do it from within our max script!?
The BatchName is not exposed to the user in SMTD’s UI, it is created whenever SMTD needs to submit multiple jobs as part of one submission. For example, if you are submitting multiple tile jobs, or a render job with a Draft or Quicktime job, or (in the upcoming 7.2) when submitting stereo cameras.
Having a manual Batch Name field in the submitter’s UI would conflict somewhat with the automatic Batch Name generation for the various cases. Of course, we could expose it and if it is set by the user, all jobs would use it instead of the automatic one.
However, if you are submitting via MAXScript using SMTDFunctions, the batchName: is simply an argument to most relevant functions, and is passed around between them as needed. Only if passed as “” empty string will it be replaced with the automatic name.
So for example if you are using the SMTDFunctions.SubmitJobFromUI() function, you can say
SMTDFunctions.SubmitJobFromUI batchName:"MyBatchJob"
If you have written your own submission code, but you are still using our SMTDFunctions.CreateSubmitInfoFile() function, you can say
SMTDFunctions.CreateSubmitInfoFile SMTDPaths.SubmitInfoFile batchName:"Whatever Name You Want"
and the batch name will be written to the submit info file.
If you are not using our submit info file creation function but are writing your own .JOB file via MAXScript, then all you need to do is output the line
BatchName=Your Batch Name
to the .JOB file.
Use the same name in multiple submissions, and the jobs will be grouped automatically…
super … this works like a charm! love you guys!!!