Go to: Synopsis. Flags. Return value. Related. Python examples.
track(
[camera]
, [down=float], [left=float], [right=float], [up=float])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
track is undoable, queryable, and editable.
The track command translates a camera horizontally or vertically
in the world space. The viewing-direction and up-direction of the
camera are not altered. There is no translation in the viewing
direction.
The track command can be applied to either a perspective or an
orthographic camera.
When no camera name is supplied, this command is applied to the
camera in the active view.
down, left, right, up
Long name (short name) |
[argument types] |
Properties |
left(l)
|
float
|
|
|
Set the amount of left translation in unit distance.
|
|
right(r)
|
float
|
|
|
Set the amount of right translation in unit distance.
|
|
up(u)
|
float
|
|
|
Set the amount of up translation in unit distance.
|
|
down(d)
|
float
|
|
|
Set the amount of down translation in unit distance.
|
|
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 have multiple arguments, passed either as a tuple or a list.
|
None
camera, cameraView, dolly, listCameras, lookThru, orbit, roll, tumble, viewCamera, viewClipPlane, viewFit, viewHeadOn, viewLookAt, viewPlace, viewSet
import maya.cmds as cmds
cmds.camera()
cmds.track( 'cameraShape1', d=10 )# To track the camera down
cmds.track( 'cameraShape1', u=-10 )
cmds.track( u=-10 )