render right-clic

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  07 July 2006
render right-clic


after tweaking all my setting i close maya then right-clic on my files scene then render much more faster for my render

but it seems that only render with maya software and not with mental ray

i check that i choose mental ray

how can i render with mental ray using the right-clic button (with maya close ) :=)


the difference mental ray

seems that is a maya sofware
  07 July 2006
You can't.

The right click render option is essentially the command render.exe.

Let's say your scene is called myscene.mb.

Open notepad and type in this :

render -r mr myscene.mb

and save it as renderthis.bat file in the folder that your scene file myscene.mb is in.

Double-click that renderthis.bat, the file that you've just created.

I'll explain now what is happening. The right click option is simply running render.exe for your scene file. The default option is Maya Software. If you want mental ray, you will need to use the -r option, which is also -renderer, to specify which renderer you want to use.

If you actually go to the command line and type in render -h you will see a whole list of options that go with render.exe. and there's also an option called -listrenderers that allows you to see the list of renderers that render.exe can use. To use mental ray, you need to put
"render -r mr " before you type in your scene file name.

And that's all there is to it

  07 July 2006
Originally Posted by Lamster: You can't.

Well, technically, you can. You just have to add the menu item yourself.

Copy the following into a text file, and save it as "something.reg" and then double click that file and say yes when it asks if you want to add it to the registry.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\MayaAsciiFile\shell\render (mr)]
[HKEY_CLASSES_ROOT\MayaAsciiFile\shell\render (mr)\command]
@="\"C:\\Program Files\\Alias\\Maya7.0\\bin\\render.exe\" -r mr \"%1\""

[HKEY_CLASSES_ROOT\MayaBinaryFile\shell\render (mr)]
[HKEY_CLASSES_ROOT\MayaBinaryFile\shell\render (mr)\command]
@="\"C:\\Program Files\\Alias\\Maya7.0\\bin\\render.exe\" -r mr \"%1\""

That will add a "render (mr)" command to the menu. Of course, it's assuming that you installed Maya to the default location.

Last edited by victor : 07 July 2006 at 05:28 PM.
  07 July 2006
Hmmm. Interesting. I'll have to try that out.

WIP: Poison Killer
  07 July 2006
I stand corrected

  07 July 2006
Originally Posted by Lamster: I stand corrected
BTW, there is another option using a BAT (or CMD) file that can be used.
"C:\Program Files\Alias\Maya7.0\bin\render.exe" -r mr %1

Put that into a text file, name it something like mray.bat, and put it somewhere in your system path (or Maya's bin folder), and then you can just type "mray scene.mb" at a command prompt to render the file with mental ray. Of course, adding additional options is a little tricky then.

Heck, you could even put that BAT file in your quicklaunch or something, and just drop the MB file on it to render.

The point being that you don't have to make a new BAT file for each scene that you want to render. The %1 will be replaced with the filename passed to it when it's run.

Last edited by victor : 07 July 2006 at 04:35 AM.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 10:40 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.