PDA

View Full Version : Controlling Render parameters with Maxscript


Coll
01-12-2009, 05:52 PM
I'm making a script that net renders a scene, and I need a way to control certain elements of the render, namely the start and end frames and the nth frame settings. I've just been placing rendtimetype = 2 and rendNthFrame = 2 into my code. It there a step I'm missing?

ZeBoxx2
01-12-2009, 07:23 PM
make sure you commit and save the changes before submitting?

if that doesn't help, try setting the job properties before submitting
<netjob>.fromFrame
<netjob>.toFrame
<netjob>.nthFrame

Coll
01-16-2009, 01:13 PM
Thanks a lot! Those worked great.

I don't suppose you know how to set PNG settings for a net render? I really need 8-bit files, but I can't get the output to be anything but the default settings

ZeBoxx2
01-16-2009, 01:48 PM
'fraid not - PiXEL_MoNKeY may pitch in here on how to do that with 3dsmaxcmd (see: http://forums.cgsociety.org/showpost.php?p=5605075&postcount=14 ). I don't think I've had any reliable way of setting the file output parameters dynamically. It *might* work if you set the PNGio bits up first, then set the rendOutputFilename to a .png extension path, save, and submit..but that's total guesswork.

PiXeL_MoNKeY
01-16-2009, 03:37 PM
The only way I know how to force settings is kind of a pain. Open max make your changes to the settings. Then you need to copy the changed png.cfg file from your user plugcfg folder to the corresponding folder on the render machines (you will need to know whether you are using the user config folders or the max root config folders). This can be done through backburner using batch files, see my post here (http://forums.cgsociety.org/showpost.php?p=5059474&postcount=6) on how I was doing a similar thing with EXR file config settings.

-Eric

Edit: Unfotunately PNG is not one of the supported formats with 3dsmaxcmd, the support formats are BMP, JPG, TGA, TIFF, EXR, RPF, and RLA.

CGTalk Moderation
01-16-2009, 03:37 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.