Command to list all cameras. If no flags are given, both perspective and orthographic cameras will be displayed. This command returns an array of camera names. When the transform name uniquely identifies the camera it is used, otherwise the shape name will be returned.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
orthographic (o) | bool | ||
|
|||
perspective (p) | bool | ||
|
Derived from mel command maya.cmds.listCameras
Example:
import pymel.core as pm
# List all cameras
pm.listCameras()
# Result: [u'front', u'persp', u'side', u'top'] #
# List all persp cameras
perspCameras = pm.listCameras( p=True )