Re: how can I get the camera's name when rendering?
- From: aen <aen@xxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 12:12:23 GMT
On Fri, 28 Mar 2008 00:24:36 -0700 (PDT), x_kelvin <x_kelvin@xxxxxxx> wrote:
thanks aen?firstly
My question is not the means that your said, maybe my
expression isn't right.
I use the toon shader in my scene. generally, an attr of toon shaders
be connnected automatically to rendering camera' message attr. Now my
scene have 20 cameras to be render, and I can render all cameras in
one time by useing a plug-ins. So I have to setup the connection
automatically between toonshader'attr and camera' message in my mel
proc when rendering different cameras, and then I put my mel proc in
" Pre render MEL" on Render Options. I think , I must get the
camera' name that being rendering, then make the connection in my mel
proc.
Yeah... its really hard to tell how advanced people are in Maya from a short
blurb, mentioning your customized plugin clears things up. Assuming this plugin
creates a slicing (each frame is rendered from all selected cameras) , it would
be a very complex plugin. Each frame/camera combo would have a identifier inside
the API. If can get access to this API identifier in Mel, then your method is
correct.
if (camera_ID == "myCamera4) {connectAttr .....; };
But it all depends on the plugin's construction.
As you say, shading networks SHOULD automatically be connected to the rendering
camera. I would contact the creator the plugin, its functionality could override
any Pre render Mel coding or simply ignore it. Not properly connecting shaders
to the rendering camera is a flaw or limitation of the plugin, it requires fixes
to the plugin or a documented work around to be included with the plugin.
luck aen...
================================================================
Without the plugin you could use the command line rendering, run as a batch
file.
In a text editor create:
render -cam camera4 rd c:\yourSaveDirectory c:\mayas\...\scene\mytoon.ma
Copy and paste this 19 times, change the camera names for the other 19 lines.
Save the file as myrender.bat.
To run this, just double click on the file name in your windows browser and a
DOS command window will open and run Maya Render for all 20 cameras.
.
- References:
- how can I get the camera's name when rendering?
- From: x_kelvin
- Re: how can I get the camera's name when rendering?
- From: aen
- Re: how can I get the camera's name when rendering?
- From: x_kelvin
- how can I get the camera's name when rendering?
- Prev by Date: Re: how can I get the camera's name when rendering?
- Next by Date: Re: creating a file node
- Previous by thread: Re: how can I get the camera's name when rendering?
- Next by thread: Exporting combined object from UV Texture Editor tia sal2
- Index(es):
Relevant Pages
|
Loading