Use this command to create a shot node or manipulate that node.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
audio (aud) | unicode | ||
Specify the audio clip for this shot. Audio can be linked to a shot to allow playback of specific sounds when that shot is being displayed in the Sequencer. Refer to the shot node’s documentation for details on how audio is used by shots and the Sequencer. |
|||
clip (cl) | unicode | ||
The clip associated with this shot. This clip will be posted to the currentCamera’s imagePlane. Refer to the shot node’s documentation for details on how cameras are used by shots and the Sequencer. |
|||
clipDuration (cd) | time | ||
|
|||
clipOpacity (co) | float | ||
Opacity for the shot’s clip, this value is assigned to the currentCamera’s imagePlane. Refer to the shot node’s documentation for details on how cameras are used by shots and the Sequencer. |
|||
clipSyncState (css) | bool | ||
The viewport synchronization status of the clip associated with this shot. Return values are, 0 = no clip associated with this shot 1 = clip is fully in sync with viewport, and frames are 1:1 with sequencer 2 = clip is partially in sync with viewport, movie may be scaled to match sequencer 3 = clip not in sync with viewport (i.e. could have scale/time/camera differences) |
|||
clipZeroOffset (czo) | time | ||
|
|||
copy (c) | bool | ||
|
|||
createCustomAnim (cca) | bool | ||
|
|||
currentCamera (cc) | unicode | ||
|
|||
customAnim (ca) | bool | ||
|
|||
deleteCustomAnim (dca) | bool | ||
|
|||
determineTrack (dt) | bool | ||
|
|||
endTime (et) | time | ||
|
|||
favorite (fav) | bool | ||
|
|||
flag1 (f1) | bool | ||
|
|||
flag10 (f10) | bool | ||
|
|||
flag11 (f11) | bool | ||
|
|||
flag12 (f12) | bool | ||
|
|||
flag2 (f2) | bool | ||
|
|||
flag3 (f3) | bool | ||
|
|||
flag4 (f4) | bool | ||
|
|||
flag5 (f5) | bool | ||
|
|||
flag6 (f6) | bool | ||
|
|||
flag7 (f7) | bool | ||
|
|||
flag8 (f8) | bool | ||
|
|||
flag9 (f9) | bool | ||
|
|||
hasCameraSet (hcs) | bool | ||
|
|||
hasStereoCamera (hsc) | bool | ||
|
|||
linkAudio (la) | unicode | ||
|
|||
lock (lck) | bool | ||
|
|||
mute (m) | bool | ||
|
|||
paste (p) | bool | ||
|
|||
pasteInstance (pi) | bool | ||
This flag is used to paste an instance of a shot or shots from the clipboard to the sequence timeline. Unlike the p/paste flag, which duplicates the camera and image plane from the original source shot, the pi/pasteInstance flag shares the camera and image plane from the source shot. The audio node is duplicated. |
|||
postHoldTime (pst) | time | ||
|
|||
preHoldTime (prt) | time | ||
|
|||
scale (s) | float | ||
|
|||
sequenceDuration (sqd) | time | ||
|
|||
sequenceEndTime (set) | time | ||
|
|||
sequenceStartTime (sst) | time | ||
|
|||
shotName (sn) | unicode | ||
Specify a user-defined name for this shot. This allows the assignment of names that are not valid as node names within Maya. Whenever the shotName attribute is defined its value is used in the UI. |
|||
sourceDuration (sd) | time | ||
|
|||
startTime (st) | time | ||
|
|||
track (trk) | int | ||
|
|||
transitionInLength (til) | time | ||
|
|||
transitionInType (tit) | int | ||
|
|||
transitionOutLength (tol) | time | ||
|
|||
transitionOutType (tot) | int | ||
|
|||
unlinkAudio (ula) | bool | ||
|
Derived from mel command maya.cmds.shot
Example:
import pymel.core as pm
myShot = pm.shot('myShot', st=10, et=19);
pm.shot(myShot, e=True, sst=100, set=119);
pm.shot(myShot, q=True, st=True);
pm.shot(myShot, q=True, sst=True);
pm.shot(myShot, e=True, pst=10);
pm.shot(myShot, q=True, set=True);
pm.shot(myShot, e=True, prt=5);
pm.shot(myShot, q=True, set=True);
pm.shot(myShot, q=True, sd=True);