Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

roll [-absolute] [-degree angle] [-relative] [camera]

roll is undoable, NOT queryable, and NOT editable.

The roll command rotates a camera about its viewing direction, a positive angle produces clockwise camera rotation, while a negative angle produces counter-clockwise camera rotation.

The default mode is relative and the rotation is applied with respect to the current orientation of the camera. When mode is set to absolute, the rotation is applied with respect to the plane constructed from the following three vectors in the world space: the world up vector, the camera view vector, and the camera up vector.

The rotation angle is specified in degrees.

The roll command can be applied to either a perspective or an orthographic camera.

This command may be applied to more than one camera; objects that are not cameras are ignored. When no camera name supplied, this command is applied to all currently active cameras.

Return value

None

Related

camera, cameraView, dolly, listCameras, lookThru, orbit, track, tumble, viewCamera, viewClipPlane, viewFit, viewHeadOn, viewLookAt, viewPlace, viewSet

Flags

absolute, degree, relative
Long name (short name) Argument types Properties
-absolute(-abs) create
Set to absolute mode.
-relative(-rel) create
Set to relative mode.
-degree(-d) angle create
Set the amount of the rotation angle.

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.

MEL examples

camera;

// Align the horizontal direction with the world horizon
roll -abs -d 0 cameraShape1;

// Roll the camera 15 degrees clockwise
roll -d 15 cameraShape1;

roll -d 15;