pymel.core.rendering.renderManip¶
- renderManip(*args, **kwargs)¶
This command creates manipulators for cameras or lights. In query mode, return type is based on queried flag.
Flags:
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. 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 Query or edit the state of manipulators on an camera, ambient light, directional light, point light, or spot light. This flag’s default value is on. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.renderManip
Example:
import pymel.core as pm 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 #