import maya.cmds as cmds
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)
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme