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.
(<function track at 0x9aa4cf8>, <function addCmdDocsCallback at 0xa144b90>, (‘track’, ‘’), {})
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
down (d) | float | ||
|
|||
left (l) | float | ||
|
|||
right (r) | float | ||
|
|||
upDistance01 (u) | float | ||
|
|||
upDistance02 (up) | float | ||
|
Derived from mel command maya.cmds.track
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.camera()
# Result: [nt.Transform(u'camera1'), nt.Camera(u'cameraShape1')] #
pm.track( 'cameraShape1', d=10 )# To track the camera down
pm.track( 'cameraShape1', u=-10 )
pm.track( u=-10 )