Notifications
Clear all

[Closed] BitmapI/O and Netrendering question

If I change the settings for Targas, say with something like,


 targa.itgaio.setcolordepth 32
 

and then send the job off to the netrender with something like,


 local theFarm = netrender.getmanager()
 local job = theFarm.newjob()
 job.outputpath = "*.tga" -- * because this is just an example
 --all of my job properties here
 job.submit()
 

Why does this not render a 32 bit targa? It renders a targa, true, but if I have many jobs to send at once, each with different colordepths (some with 24, some with 32), this leaves me high and dry. It seems strange that when I set it to 32, then send to render, then set to 24 and send to render, I get renders that are both 32 bit colordepth renders. This information is not being sent to the manager with the job – is there a way to set the new job to be the BitmapI/O I set it to?

4 Replies

Is there truly no way to specify output settings prior to sending a job to the netrender interface? If not, then what are the BitmapIO methods for – they seem to make no difference at all. Any help is appreciated, although this seems like a very esoteric topic!

i dont think the bitmap io is easy useing for script .

what i do is :

open a max , then render a scene (anything as u wish ),and save the result as a tga file . then it will popup a selection form about setting of tga , be sure set the 32 bit or other option here , the max seems only use this setting here . like a ffffff

i dont know why , i can only show what i do .

That’s what I’ve been doing too hblan, I just wish there were a way to set render settings through maxscript! If I have hundreds of jobs to send off, its going to hurt real bad to go in and set them all manually before my script sends the file to the queue…

ok! I found out what the problem was:

After doing some testing, I found that the bitmap IO methods worked fine when I was just working with bitmaps. Doing a


 targa.itgaio.setcolordepth 32
 x = bitmap 200 200
 render to: x
 x.filename = "filename"
 save x
 
 targa.itgaio.setcolordepth 24
 y = bitmap 200 200
 render to: y
 y.filename = "filename"
 save y
 

worked perfectly; one bitmap had an alpha, while the other did not. Apparently the save file path in the Render Scene Dialog will override any settings set by the user, so what you have to do is


 renderSceneDialog.close()
 rendoutputfilename = ""
 

This will effectively shutdown any settings that the scene has, enabling your code to do the bitmap IO settings you want. Just in case you wanted to know