On Thu, 27 Mar 2008 09:47:55 -0700 (PDT), x_kelvin <x_kelvin@[EMAIL PROTECTED]
>
wrote:
> My scene has setup several cameras and use batch render to render
>them.
>When maya is rendering a camera, I need to connect a shading network
>to the camera.... , How can I do it use MEL?
> I think that I need to get the camera's name of being rendering
>when maya is batch rendering, then put the mel that the camera being
>the shading network to "Pre Render Mel" in "render setting" panel.
>So, How I can get it?
>
>thx
Hi x_kelvin
Not really sure what you mean here?
1. The Rendering camera is connected to all shading networks.
For Batch Rendering (animated sequence) you select your camera in:
Render View -> Options -> Render Settings (popup window)
Then common tab->Renderable Camera -- and select your camera
Single frame rendering camera is set with:
Render View -> Render ->Render -- and select your camera
OR
2. You can also connect a camera Inside a shading network.
You can connect your camera (as any other object) to a variety of
General Utility Nodes inside Hypershade. If your connecting your camera
this way and want to connect it to a variety of cameras, you can use the
Connection Editor to connector another object (another camera)
or you use Mel :
"connectAttr -f camera4.translate condition1.colorIfTrue;"
which means camera4's xyz are used as Output 1 for a switch node.
If your not sure what Mel cmmds to use, create the connection with the
connection editor, then open up your Script Editor and the Mel command
is seem in the History (top) pane.
hth's aen...


|