If anybody comes over looking for solution than here it is.
cmds.setAttr("frontShape.renderable", False)
cmds.setAttr("perspShape.renderable", False)
cmds.setAttr("sideShape.renderable", False)
cmds.setAttr("topShape.renderable", False)
cmds.setAttr('light_cameraShape.renderable', True)
On Sun, Feb 11, 2018 at 6:07 AM, Chris Gardner <[email protected]>
wrote:
> Hi there,
>
> Look for an attribute on each camera called “renderable” ( I think - not
> in front of maya atm).
>
> Like so many things in renderglobals, those controls aren’t doing what you
> think....
>
> Cheers,
> Chrisg
>
> ------------------------------
> *From:* [email protected] <python_inside_maya@
> googlegroups.com> on behalf of Nitin Singh <[email protected]>
> *Sent:* Sunday, February 11, 2018 3:01:57 AM
> *To:* Python Programming for Autodesk Maya
> *Subject:* [Maya-Python] change Renderable Camera ?
>
> 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/2c6e931d-f087-4a49-aa84-
> 8cd146c10d9f%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/2c6e931d-f087-4a49-aa84-8cd146c10d9f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/python_inside_maya/RDswOKvqz4I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/BY1PR03MB13728EC13D40A16A94C6B
> ACAFDF10%40BY1PR03MB1372.namprd03.prod.outlook.com
> <https://groups.google.com/d/msgid/python_inside_maya/BY1PR03MB13728EC13D40A16A94C6BACAFDF10%40BY1PR03MB1372.namprd03.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAL_1smbL83%3DxAocGd0RgTeMR69nS3fr0o6XG%3D6BaYCyQqpdC0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.