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 ../../../_images/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).

dropFrame (df) bool ../../../_images/create.gif
 
Query the ‘drop frame’ flag of the movie’s timecode format.
frameCount (f) bool ../../../_images/create.gif
 
Query the number of frames in the movie file
frameDuration (fd) bool ../../../_images/create.gif
 
Query the frame duration of the movie’s timecode format.
height (h) bool ../../../_images/create.gif
 
Query the height of the movie
movieTexture (mt) bool ../../../_images/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 commandFlag can have multiple arguments, passed either as a tuple or a list.

negTimesOK (nt) bool ../../../_images/create.gif
 
Query the ‘neg times OK’ flag of the movie’s timecode format.
numFrames (nf) bool ../../../_images/create.gif
 
Query the whole number of frames per second of the movie’s timecode format.
quickTime (qt) bool ../../../_images/create.gif
 
Query whether the movie is a QuickTime movie.
timeCode (tc) bool ../../../_images/create.gif
 
Query the timecode of the current movie frame.
timeCodeTrack (tt) bool ../../../_images/create.gif
 
Query whether the movie has a timecode track.
timeScale (ts) bool ../../../_images/create.gif
 
Query the timescale of the movie’s timecode format.
twentyFourHourMax (tf) bool ../../../_images/create.gif
 
Query the ‘24 hour max’ flag of the movie’s timecode format.
width (w) bool ../../../_images/create.gif
 
Query the width of the movie

Derived from mel command maya.cmds.movieInfo

Example:

import pymel.core as pm

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

Previous topic

pymel.core.animation.movOut

Next topic

pymel.core.animation.mute

Core

Core Modules

Other Modules

This Page