mustan9
05-29-2009, 05:02 AM
function send_render_job nameStr dateStr =
(
-- Get and then connect to the manager
mngr = NetRender.GetManager()
-- check if you are already connected
if mngr.connected == false do
(
-- connect to the manager if not already connected and force 32bit mode
--platform is an undocumented parameter used to connect to the manager
-- for access to 32bit or 64bit jobs. You can only connect to one at a time.
mngr.connect #automatic "255.255.255.0" platform:#32
)
dir = "\\\\Ripply\\render_output\\clients\\xxxx\\"+dateStr+"\\"+nameStr
file = dir+"\\"+nameStr+".tga"
makeDir dir all:true
-- Now that we have access to the manager we need to prepare the job for submission
job = mngr.newJob()
-- assign a name to the job
job.name = "Auto-"+nameStr+"-"+dateStr
-- From here you can set just about anything else you need.
job.includemaps = true -- set includemaps to true for the job
job.suspended = true
job.frameoutputname = file
job.fromFrame = 0
job.toFrame = animationRange.end
-- Once done setting your render parameters you need to simply submit the job
job.Submit()
-- disconnect
mngr.Disconnect()
)
Hi,
The above code works fine, except that the TGA sequences that are rendered have the wrong kind of alpha. I want to be able to turn on/off the pre-multiple alpha setting for saving TGA files, but I can't figure out how to do that.
Any ideas?
Thanks,
(
-- Get and then connect to the manager
mngr = NetRender.GetManager()
-- check if you are already connected
if mngr.connected == false do
(
-- connect to the manager if not already connected and force 32bit mode
--platform is an undocumented parameter used to connect to the manager
-- for access to 32bit or 64bit jobs. You can only connect to one at a time.
mngr.connect #automatic "255.255.255.0" platform:#32
)
dir = "\\\\Ripply\\render_output\\clients\\xxxx\\"+dateStr+"\\"+nameStr
file = dir+"\\"+nameStr+".tga"
makeDir dir all:true
-- Now that we have access to the manager we need to prepare the job for submission
job = mngr.newJob()
-- assign a name to the job
job.name = "Auto-"+nameStr+"-"+dateStr
-- From here you can set just about anything else you need.
job.includemaps = true -- set includemaps to true for the job
job.suspended = true
job.frameoutputname = file
job.fromFrame = 0
job.toFrame = animationRange.end
-- Once done setting your render parameters you need to simply submit the job
job.Submit()
-- disconnect
mngr.Disconnect()
)
Hi,
The above code works fine, except that the TGA sequences that are rendered have the wrong kind of alpha. I want to be able to turn on/off the pre-multiple alpha setting for saving TGA files, but I can't figure out how to do that.
Any ideas?
Thanks,
