[Closed] net render include maps
hi guys
i was wondering if there is a way to change the default state of the “include maps” option
in the net render dialog to active via max script .
cause the default state is inactive , and we are using a render manager that doesn’t include
that option when you send renders to the net renderer .
i would like to be able to just click a button to make it active or inactive without having to open the
net render dialog .
hope you can help
thanks!
you have to submit the job through script.
check the “interface : netrender” topic in maxscript help file.
m = netrender.getmanager() --get a NetManager instance
--start this session
m.connect #manual "nimbus"
-- OR m.connect #manual "nimbus" port:1234 --specifying a port number
-- QUEUE CONTROL --
--Get QueueControl using GetControl();
--there is no way to release control, but if wantControl==false
--then control will be relinquished to the next client
--that requests it
if( m.QueryControl #wait ) do--only take control if you have permission
m.getcontrol() --takes queue control
m.wantControl=true --if another client does QueryControl(), they will get a return value of false
m.Lock true --this completely prevents others from getting queue control
m.Lock false --others can now get control
-- SUBMITTING JOBS --
job = m.newjob file:"c:\\share\ est.max"
job.suspended = true --jobs can be submitted as suspended
job.state --should be unsubmitted
job.includeMaps = true --turn on "Include Maps"
srv_list = m.getservers() --get the server list to assign to the job
job.submit servers:srv_list --specify which servers to use for the job
-- job.submit() --this uses all servers for the job
thanks man
i found that much
but the problem is that render pass manager we use sends the jobs and the writer of that script didnt
include an option to enable that action
that means i would have to write an entire new script to handle the render passes and layers
and i would prefer not to do that , i cant edit the existing script because its encrypted .
the writer is no were to be found , so i was just wondering is there a way to check the check box
without going into the submitting job window
or is there a way to change the max default from unchecked to checked .
if not through maxscript maybe from an .ini file or something like that
Alternatively, you can programmatically locate and edit backburner.xml and change the setting there before sending to render.