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 ../../../_images/query.gif ../../../_images/edit.gif
 

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 ../../../_images/query.gif ../../../_images/edit.gif
 

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 ../../../_images/query.gif ../../../_images/edit.gif
 

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 ../../../_images/query.gif ../../../_images/edit.gif
 
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.

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 #