Go to: Synopsis. Return value. Keywords.
Related. Flags.
Python examples.
movieInfo(string, [counter=boolean], [dropFrame=boolean], [frameCount=boolean], [frameDuration=boolean], [height=boolean], [movieTexture=boolean], [negTimesOK=boolean], [numFrames=boolean], [quickTime=boolean], [timeCode=boolean], [timeCodeTrack=boolean], [timeScale=boolean], [twentyFourHourMax=boolean],
[width=boolean])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
movieInfo is NOT undoable, NOT queryable, and
NOT editable.
movieInfo provides a mechanism for querying information about movie
files.
None
movie, imageplane, avi, quicktime
shot
counter, dropFrame, frameCount, frameDuration, height, movieTexture, negTimesOK, numFrames, quickTime, timeCode, timeCodeTrack, timeScale, twentyFourHourMax, width
Long name (short name) |
Argument types |
Properties |
frameCount(f) |
boolean |
![create create](../gfx/create.gif) |
|
Query the number of frames in the movie file |
|
width(w) |
boolean |
![create create](../gfx/create.gif) |
|
Query the width of the movie |
|
height(h) |
boolean |
![create create](../gfx/create.gif) |
|
Query the height of the movie |
|
quickTime(qt) |
boolean |
![create create](../gfx/create.gif) |
|
Query whether the movie is a QuickTime movie. |
|
timeCodeTrack(tt) |
boolean |
![create create](../gfx/create.gif) |
|
Query whether the movie has a timecode track. |
|
dropFrame(df) |
boolean |
![create create](../gfx/create.gif) |
|
Query the 'drop frame' flag of the movie's timecode
format. |
|
twentyFourHourMax(tf) |
boolean |
![create create](../gfx/create.gif) |
|
Query the '24 hour max' flag of the movie's timecode
format. |
|
negTimesOK(nt) |
boolean |
![create create](../gfx/create.gif) |
|
Query the 'neg times OK' flag of the movie's timecode
format. |
|
counter(cn) |
boolean |
![create create](../gfx/create.gif) |
|
Query the 'counter' flag of the movie's timecode format. If
this is true, the timecode returned by the -timeCode flag will be a
simple counter. If false, the returned timecode will be an array of
integers (hours, minutes, seconds, frames). |
|
timeScale(ts) |
boolean |
![create create](../gfx/create.gif) |
|
Query the timescale of the movie's timecode format. |
|
frameDuration(fd) |
boolean |
![create create](../gfx/create.gif) |
|
Query the frame duration of the movie's timecode format. |
|
numFrames(nf) |
boolean |
![create create](../gfx/create.gif) |
|
Query the whole number of frames per second of the movie's
timecode format. |
|
timeCode(tc) |
boolean |
![create create](../gfx/create.gif) |
|
Query the timecode of the current movie frame. |
|
movieTexture(mt) |
boolean |
![create create](../gfx/create.gif) |
|
If set, the string argument is interpreted as the name of a
movie texture node, and the command then operates on the movie
loaded by that node. |
|
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. |
import maya.cmds as cmds
cmds.movieInfo("C:/My Documents/myMovie.avi", frameCount=1)
# 24