Script to submit draft render first

Hi,

Still new to deadline, using it with 3DS MAX and Vray. Could anyone help with a script that would submit the current job as usual, but then submit a duplicate job with vray’s bucket image sampler noise threshold set to 0.8 (so much lower quality) and set the first scene as a dependant of this one.

Is this even possible?

The idea is that everytime we submit a job, a draft/much lower quality scene will be rendered first, allowing us to setup the composition/edit with the draft render, and then later the higher quality render will replace this.

Many thanks in advance

Luc

Assuming it’s possible to adjust the bucket image sampler noise threshold without editing the scene that’s 100% possible.

You’d start with an OnJobSubmitted Event Plugin, like this one in our github, but instead of resuming tasks it’d submit a copy of the job with that noise threshold adjusted.

Before getting too much further I suggest figuring out how to adjust that noise threshold and make sure it works. The rest of the Deadline-centric stuff is possible, but I don’t know about that.

Docs on Event Plugins
Docs on Scripting in Deadline

Ace, I think the render settings can be changed with a maxscript.

Can deadline scripts run maxscripts.

On the vray documentation there is a parameter:

progressive_noise_threshold : float

So I’m guessing that would work if deadline can run maxscripts

Deadline scripts can run anything you can call in Python. :slight_smile:

Since it’s Max you could make those adjustments in a 3dsMax prerender script that reads in an environment variable and uses it to set progressive_noise_threshold.

In that case your event would be just setting an environment variable on that job that gets created.

Or you could run the maxscript by calling max with Python’s subprocess module.