Go to: Synopsis. Return value. Related. Flags. MEL examples.
listCameras [-orthographic] [-perspective] [-ufeCameras]
listCameras is undoable, NOT queryable, and NOT 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.
camera, cameraView, dolly, lookThru, orbit, roll, track, tumble, viewCamera, viewClipPlane, viewFit, viewHeadOn, viewLookAt, viewPlace, viewSet
orthographic, perspective, ufeCameras
Long name (short name) |
Argument types |
Properties |
|
-orthographic(-o)
|
|
|
|
Display all orthographic cameras.
|
|
-perspective(-p)
|
|
|
|
Display all perspective cameras.
|
|
-ufeCameras(-ufe)
|
|
|
|
Will return cameras that are defined through the UFE interface as well as Maya cameras.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command.
|
// List all Maya cameras
listCameras;
// List all Maya persp cameras
string $perspCameras[] = `listCameras -p`;
// List all Maya and non-Maya (thru Ufe) cameras
listCameras -ufe;