pymel.core.animation.movieInfo¶
- movieInfo(*args, **kwargs)¶
movieInfo provides a mechanism for querying information about movie files.
Flags:
Long Name / Short Name Argument Types Properties counter / cn bool
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 bool
Query the ‘drop frame’ flag of the movie’s timecode format. frameCount / f bool
Query the number of frames in the movie file frameDuration / fd bool
Query the frame duration of the movie’s timecode format. height / h bool
Query the height of the movie movieTexture / mt bool
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 bool
Query the ‘neg times OK’ flag of the movie’s timecode format. numFrames / nf bool
Query the whole number of frames per second of the movie’s timecode format. quickTime / qt bool
Query whether the movie is a QuickTime movie. timeCode / tc bool
Query the timecode of the current movie frame. timeCodeTrack / tt bool
Query whether the movie has a timecode track. timeScale / ts bool
Query the timescale of the movie’s timecode format. twentyFourHourMax / tf bool
Query the ‘24 hour max’ flag of the movie’s timecode format. width / w bool
Query the width of the movie Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.movieInfo
Example:
import pymel.core as pm pm.movieInfo("C:/My Documents/myMovie.avi", frameCount=1) # 24