[Closed] Net Render Job Submit
Hello
Im trying to submit a job to backburner with useallservers = false but for some reason i cant get it to accept it.
it submits the job fine, no problem but always has useallservers set to true.
Ive tried using <job>.sendupdate() but it hasnt help the problem
nman=netrender.getmanager()
nman.connect #manual "############" port:3234
if( nman.QueryControl #wait ) then( --only take control if you have permission
nman.getcontrol() --takes queue control
nman.wantControl=true --if another client does QueryControl(), they will get a return value of false
--nman.Lock true
j=nman.newjob()
print j
j.name=("3_"+scName + "_"+ actCam1 +"_Main Render")
print j.name
j.suspended = true
j.fromframe=vrqrender.spinfrom.value
j.toframe=vrqrender.spinto.value
j.nthframe=1
savefilenamepath = pathConfig.convertPathToUnc "\\\\Tjg-rendrdrv\\Render\\" + scName + "\\" + actCam1 + "\\"
makeDir savefilenamepath
savefilename = pathConfig.convertPathToUnc "\\\\Tjg-rendrdrv\\Render\\" + scName + "\\" + actCam1 + "\\" + actCam1 + "_" +".png"
j.useAllServers = false
j.sendupdate()
j.frameOutputName=savefilename
j.submit()
if chk_IM.checked == true then
(j.includemaps = true)
else (j.includemaps = false)
--nman.Lock false
nman.wantControl=false
renderHeight = origheight
renderWidth = origwidth
renderPixelAspect = origaspect
renderSceneDialog.open()
Any help would be great
Col
Since you haven’t assigned any servers to your job, 3dsmax will automatically use all servers. You can specify the servers in the Submit command, like so:
j.useAllServers = false
-- get all IDLE servers. Check the maxscript reference for more options
IdleServers = netMan.GetServers filter:#idle
-- submit the job using the IDLE servers
j.Submit Servers:IdleServers
Afaik, you can remove all the SendUpdate commands from your script as they are not needed for the above to work.
Cheers,
Martijn
Ok this is what i have gone with
im being really picky here…
I want to submit the job but have no server assigned to it because i need to go to backburner afterwards and set up dependencies etc…
so i want to be able to do all the assigning then…
local netsubmit = ""
netsubmit = nman.getservers filter:#handle key:"001A4B0AE678"
j.submit servers:netsubmit
so with that in mind i tried using this after the above
j.suspendservers netsubmit
but it didnt work
Afaik, the only option you have here is to suspend the job upon creation. UseAllServers = false only works when at least one server is specified with the Submit Servers:… command.
I’m don’t have max open right now, but I don’t think “suspendservers” is a valid command. You can only suspend jobs, not servers.
Martijn