Re: how can I get the camera's name when rendering?



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.

.



Relevant Pages

  • Re: how can I get the cameras name when rendering?
    ... be connnected automatically to rendering camera' message attr. ... scene have 20 cameras to be render, and I can render all cameras in ... automatically between toonshader'attr and camera' message in my mel ...
    (comp.graphics.apps.alias)
  • Re: Problems in Colorizing Surfaces of 4 Triangles & 1 Quad of A Pyram
    ... Idle time is used to render the scene. ... D3DXVECTOR3 cameraPosition; // the position of the camera ... VOID* pVertices; ... HRESULT CMyD3DApplication::OneTimeSceneInit ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Problems Decoding Video Captured By Digital Camera
    ... Problems Decoding Video Captured By Digital Camera>, ... I took screenshots as I was going along doing all of the above. ... under "Codec Installation Package for Windows Media ... Launch it and do a File | Render Media ...
    (rec.video.desktop)
  • Re: Dynamic Cubic Environment Mapping DX 9.0
    ... To render your scene into the faces of a cube map: ... - Position your camera in the place of the world where you want the cube ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Some pseudocode
    ... about how to render the scene (as viewed by that camera). ... should you choose to use quaternions to represent ...
    (comp.graphics.algorithms)

Loading