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 | ||
|
|||
currentCamera (cc) | unicode | ||
|
|||
determineTrack (dt) | bool | ||
Determines an available track for the shot. Returns a new track number or the existing track number if the current track is available.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
endTime (et) | time | ||
|
|||
favorite (fav) | 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 | ||
|
|||
unlinkAudio (ula) | bool | ||
|
Derived from mel command maya.cmds.shot
Example:
import pymel.core as pm
import maya.cmds as cmds
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);