Can not find the default camera for rendering

How can I retrieve the current camera set in the renderGlobals? I can not find a corresponding attribute in the defaultRenderGlobals.

every and each camera has a own is renderable variable!

Yeah, I know, but I don't mean that. In the renderGlobals you can mark a default camera for rendering. Where can I find that attribute?

you can use batch render command line flags to forcr a specific camera! But it still has to be marked renderble.

And the preview render command calls the camera to be rendered. Theres no atribute around for this.

Thanks, I'm already familiar with this. Maybe we talk at cross purposes or I'm too ignorant to accept I cannot access through MEL the attribute I can access through the GUI shown here: http://www.renderregion.com/renderGlobals.gif
It's not the problem to specify the camera I want to render, I simply want to retrieve the camera which is set to be the default camera for rendering the scene.

Yes its a illusion of sorts! What it does is it iterates trough every camera and sets their renderable flags to proper settings! You can change it but it isnt a atribute its a connection!

the prcedure that controlls this is called changeMayaSoftwareCamera; its defined in maya/scripts/others/createMayaSoftwareCommonGlobalsTab.mel wich does reset the renderabele flags of the cameras as well as connection one forced controll!

have a read.

PS. I dont understand why you guys cant dig into this yourselves i mean echoing all askin whatIs for procedure names and using emacs or another text editor isnt THAT hard.

Thanks!

P.S: You're absolutely right! I will work on that. The problem is before your answer I didn't even know the procedure changeMayaSoftwareCamera is hidden in the createMayaSoftwareCommonGlobalsTab MEL file.

When you echo all maya gives you hints, now if you want to know where a certain porcedure is actualy located you can kindly ask maya for it

Exampe:

whatIs thisStupidPocedureThatMayaKeepsEchoingAbout

And maya will kindly tell you what or where it is located or defined that is.

Thanks for the hint. Hoped I would have discovered the whatIs command before.