movieInfo provides a mechanism for querying information about movie files.
| 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 |
|
|
|
|||
| frameCount (f) | bool |
|
|
|
|||
| frameDuration (fd) | bool |
|
|
|
|||
| height (h) | bool |
|
|
|
|||
| 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.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
| negTimesOK (nt) | bool |
|
|
|
|||
| numFrames (nf) | bool |
|
|
|
|||
| quickTime (qt) | bool |
|
|
|
|||
| timeCode (tc) | bool |
|
|
|
|||
| timeCodeTrack (tt) | bool |
|
|
|
|||
| timeScale (ts) | bool |
|
|
|
|||
| twentyFourHourMax (tf) | bool |
|
|
|
|||
| width (w) | bool |
|
|
|
|||
Derived from mel command maya.cmds.movieInfo
Example:
import pymel.core as pm
pm.movieInfo("C:/My Documents/myMovie.avi", frameCount=1)
# 24