Go to: Synopsis. Return value. Related. Flags. Python examples.
listCameras([orthographic=boolean], [perspective=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
listCameras is undoable, queryable, and editable.
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.string[]
In query mode, return type is based on queried flag.
Long name (short name) | argument types | Properties | ||
---|---|---|---|---|
perspective(p)
|
boolean
|
![]() |
||
|
||||
orthographic(o)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # List all cameras cmds.listCameras() # List all persp cameras perspCameras = cmds.listCameras( p=True )