PDA

View Full Version : Maya Hardware Render


DSedov
04-23-2004, 01:53 AM
Hello!

Is there any chance to render Maya Hardware Render from command line? I know that in M6 you can batch render it, but I could not find a command line it launches. Maybe it is something internal. On the other hand the scene we are rendering is not that intencive, and I can do this on one machene, but we are ending up with some compex particle stuff in a month ..... errr.. I need some command line stuff to send to rnd guys who do our netrender.

Powell
04-23-2004, 02:02 AM
Yes it is possible. Do this:

- create a MEL file that looks something like this....you can add whatever attribute you want to it:

hwRenderLoad; select hardwareRenderGlobals;
setAttr .resx 512
setAttr .resy 512
setAttr .sf 10
setAttr .ef 40
setAttr .bf 2
setAttr -type "string" .fn "imageName"
hwRender;

Then just type this on the command line:

mayabatch -"your file" -"your project dir" -script (the MEL script you just created)

This works for Maya 4.5 and 5.0....All this has been unified under one -Render command in 6.0!

DSedov
04-23-2004, 02:21 AM
We are starting to use 6! Can you elaborate more on the way 6 batchrenders HR? I need the command to send to rnd to write HR network distribution module.


Originally posted by Powell
Yes it is possible. Do this:

- create a MEL file that looks something like this....you can add whatever attribute you want to it:

hwRenderLoad; select hardwareRenderGlobals;
setAttr .resx 512
setAttr .resy 512
setAttr .sf 10
setAttr .ef 40
setAttr .bf 2
setAttr -type "string" .fn "imageName"
hwRender;

Then just type this on the command line:

mayabatch -"your file" -"your project dir" -script (the MEL script you just created)

This works for Maya 4.5 and 5.0....All this has been unified under one -Render command in 6.0!

Powell
04-23-2004, 04:34 AM
In Maya 6.0 Alias created a new commandline render utility. All you have to do is just type:

Render -r rendername -help

where 'rendername' is the name of the renderer:

mr = mental ray
sw = software renderer
hw = hardware renderer
vr = vector renderer

Im so happy that Alias did this. Writing those MEL files for each commandline render gets very annoying!

CGTalk Moderation
01-18-2006, 03:00 AM
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.