Go to: Synopsis. Return value. Related. Flags. MEL examples.
listCameras [-orthographic] [-perspective]
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)
|
|
![]() |
||
|
||||
-orthographic(-o)
|
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// List all cameras listCameras; // List all persp cameras string $perspCameras[] = `listCameras -p`;