Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.

Synopsis

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.

Return value

None

Keywords

movie, imageplane, avi, quicktime

Related

shot

Flags

counter, dropFrame, frameCount, frameDuration, height, movieTexture, negTimesOK, numFrames, quickTime, timeCode, timeCodeTrack, timeScale, twentyFourHourMax, width
Long name (short name) Argument types Properties
counter(cn) boolean create
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).
dropFrame(df) boolean create
Query the 'drop frame' flag of the movie's timecode format.
frameCount(f) boolean create
Query the number of frames in the movie file
frameDuration(fd) boolean create
Query the frame duration of the movie's timecode format.
height(h) boolean create
Query the height of the movie
movieTexture(mt) boolean create
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.
negTimesOK(nt) boolean create
Query the 'neg times OK' flag of the movie's timecode format.
numFrames(nf) boolean create
Query the whole number of frames per second of the movie's timecode format.
quickTime(qt) boolean create
Query whether the movie is a QuickTime movie.
timeCode(tc) boolean create
Query the timecode of the current movie frame.
timeCodeTrack(tt) boolean create
Query whether the movie has a timecode track.
timeScale(ts) boolean create
Query the timescale of the movie's timecode format.
twentyFourHourMax(tf) boolean create
Query the '24 hour max' flag of the movie's timecode format.
width(w) boolean create
Query the width of the movie

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.

Python examples

import maya.cmds as cmds

cmds.movieInfo("C:/My Documents/myMovie.avi", frameCount=1)
# 24