Max Script - changing job render resolution and file name

Hello,
I’m a new Deadline user coming from Backburner.
In Backburner I had a simple script that adjusted the job resolution and file output name for each job. How would I script this in Deadline ? Below is my backburner script.

M = NETRENDER.GETMANAGER()
JOB = M.newjob()
JOB.OUTPUTWIDTH = 3000
JOB.OUTPUTHEIGHT = 2000
JOB.RENDERCAMERA = VIEW
JOB.FRAMEOUTPUTNAME = “G:\xx\” + view + “_raw.tif”

I need to be able to do the same think using Deadline. Any help would be appreciated.

I guess I figured it out… I can just use the script below to adjust the settings in 3dmax before submitting each job, and just copy it for each camera. That way I can send multiple cameras at different resolutions with file names corresponding to the camera name.

Is this the best way to do it ?

view = “VRayCam002”
viewport.setCamera (execute ("$’" + view + “’”))

renderSceneDialog.close()

renderWidth = 3000
renderHeight = 2000

rendSaveFile = true
rendOutputFilename = “G:\XX\” + view + “.tif”