Go to: Synopsis. Return value. Related. Flags. Python examples.
track(
[camera]
, [down=linear], [left=linear], [right=linear], [upDistance01=linear], [upDistance02=linear])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
track is undoable, NOT queryable, and NOT 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.
None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
down(d)
|
linear
|
![]() |
||
|
||||
left(l)
|
linear
|
![]() |
||
|
||||
right(r)
|
linear
|
![]() |
||
|
||||
upDistance01(u)
|
linear
|
![]() |
||
|
||||
upDistance02(up)
|
linear
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
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 )