to switch your camera in render setting you need to first turn off other 
cameras renderable option and then set the same renderable option ON for 
the camera you want to set in maya render settings window. 

# turning off on default maya cameras
cmds.setAttr("frontShape.renderable", False)
cmds.setAttr("perspShape.renderable", False)
cmds.setAttr("sideShape.renderable", False)
cmds.setAttr("topShape.renderable", False)

# turning on the camera which I want to set in maya render settings. You 
need  camera shape node.

cmds.setAttr('light_cameraShape.renderable', True)


On Tuesday, February 27, 2018 at 12:10:16 PM UTC+10, Ablaye Balde wrote:
>
> Le samedi 10 février 2018 16:01:58 UTC, Nitin Singh a écrit : 
> > Hi Guys, 
> > 
> > I am looking to change Renderable camera in with Python. I tried all I 
> can but failed finding a command for doing so. Can someone please tell the 
> quick way for doing so. 
> > 
> > 
> > 
> > thanks 
> > nitin 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/32b9f420-d092-4e55-934e-ac38b5e010b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to