This command creates manipulators for cameras or lights. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
camera (cam) | bool, bool, bool, bool, bool | ||
Query or edit the visiblity status of the component camera manipulators. The order of components are: cycling index, center of interest, pivot, clipping planes, and unused. |
|||
light (lt) | bool, bool, bool | ||
Query or edit the visiblity status of the component light manipulators. The order of components are: cycling index, center of interest, and pivot.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
spotLight (slt) | bool, bool, bool, bool, bool, bool, bool | ||
Query or edit the visiblity status of the component spot light manipulators. The order of components are: cycling index, center of interest, pivot, cone angle, penumbra, look through barn doors, and decay regions. |
|||
state (st) | bool | ||
|
Derived from mel command maya.cmds.renderManip
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.camera()
# Result: [nt.Transform(u'camera1'), nt.Camera(u'cameraShape1')] #
pm.renderManip( 'cameraShape1' )
pm.renderManip( 'cameraShape1', e=True, st=True )
pm.renderManip( 'cameraShape1', q=True, st=True )
# Result: True #