different region: per frame

Hi

We have to submit a Maxwell render using a differente region: per frame (basically I have to correct an small object that was wrong, and we can´t wait to redo the whole frame because it would take too long).
I have tracked this object, and have a list of X and Y minimum and maximum coordinates for the bounding box that needs to be recalculated for each frame to substitute the object composing it over the old, full frame render.

With this list I could create (in excel for instance) a series of .bat files, one for each machine, but of course this wouldn´t bee too optimal…

“C:\Program Files\Next Limit\Maxwell 2\maxwell” -a:24090 -mxi:pathto.mxi -o:pathto.png -region:region,Xmin,Ymin,Xmax,Ymax -mxs:pathto.mxs

I wonder if there is an easy way to do this within Deadline, I am a bit lost.
Basically, a custom command that looks for a value for each frame, for instance in a line in a txt file.

Anyone has any example I could use?

Best regards

I think you would probably need to write a submission script that sent off a job for each frame referencing an index of regions, it’s going to be slow and create a lot of jobs in your monitor, but you can’t change the region area post-load or pre-render. There’s an example maxscript submitter on here somewhere and would only take a dozen or so lines to put all the region code into it.

The only other way would be (I’m a VRay user not a Maxwell user) would assuming Maxwell has it’s own VFB and has it’s own Region values (like VRay does) would be to write some form of post-load script which would change Maxwell’s region settings before render, but this is all theory…

Sorry, I forgot to mention we are sending the Maxwell jobs from Maya, so no MaxScript for me I think.

Could anybody point me to a “Maya” -OR- “.bat” submission script that sends off a job for each frame referencing an index of values"

Or anything, really, with just an example I could look at I could prepare a "excel-to-MS-DOS-console-.bat-script ".

I’m sure a similar submission script could be written in MEL or Python, chances are Thinkbox have one somewhere…

If you have a text file with one line per command, you could use the Command Script plugin:
thinkboxsoftware.com/deadlin … andscript/

If the command lines are identical except for the frame number, you could submit an arbitrary command line job to Deadline:
thinkboxsoftware.com/deadlin … o_Deadline

Cheers,

  • Ryan

YESSS!

Thanks a lot, Ryan