Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Alias software > Re: how can I g...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 892 of 912
Post > Topic >>

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

by aen <aen@[EMAIL PROTECTED] > Mar 28, 2008 at 12:34 AM

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...
 




 5 Posts in Topic:
how can I get the camera's name when rendering?
x_kelvin <x_kelvin@[EM  2008-03-27 09:47:55 
Re: how can I get the camera's name when rendering?
aen <aen@[EMAIL PROTEC  2008-03-28 00:34:52 
Re: how can I get the camera's name when rendering?
x_kelvin <x_kelvin@[EM  2008-03-28 00:24:36 
Re: how can I get the camera's name when rendering?
aen <aen@[EMAIL PROTEC  2008-03-28 12:12:23 
Re: how can I get the camera's name when rendering?
x_kelvin <x_kelvin@[EM  2008-04-04 08:53:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Nov 23 2:37:59 CST 2008.