Use this command to query and set the time code information in the file
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
mayaStartFrame (msf) | float | ||
Sets the Maya start time of the time code, in frames. In query mode, returns the Maya start frame of the time code.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
productionStartFrame (psf) | float | ||
|
|||
productionStartHour (psh) | float | ||
|
|||
productionStartMinute (psm) | float | ||
|
|||
productionStartSecond (pss) | float | ||
|
Derived from mel command maya.cmds.timeCode
Example:
import pymel.core as pm
import maya.cmds as cmds
# set the production start time to 1 hour, 33 min, 52 seconds, and 23 frames
pm.timeCode(productionStartHour=1,productionStartMinute=33,productionStartSecond=52,productionStartFrame=23)
# query the production start time
#
pm.timeCode(query=1,productionStartHour=True)
# Result: 1 #
// result: 1
pm.timeCode(query=1,productionStartMinute=True)
// result: 33