Go to: Synopsis. Return value. Keywords. Flags. MEL examples.

Synopsis

timeCode [-mayaStartFrame float] [-productionStartFrame float] [-productionStartHour float] [-productionStartMinute float] [-productionStartSecond float]

timeCode is undoable, queryable, and editable.

Use this command to query and set the time code information in the file

Return value

time values

In query mode, return type is based on queried flag.

Keywords

timecode, time

Flags

mayaStartFrame, productionStartFrame, productionStartHour, productionStartMinute, productionStartSecond
Long name (short name) Argument types Properties
-productionStartHour(-psh) float createqueryedit
Sets the production start time of the time code, in terms of hours. In query mode, returns the hour of production start time.
-productionStartMinute(-psm) float createqueryedit
Sets the production start time of the time code, in terms of minutes. In query mode, returns the minute of production start time.
-productionStartSecond(-pss) float createqueryedit
Sets the production start time of the time code, in terms of seconds. In query mode, returns the second of production start time.
-productionStartFrame(-psf) float createqueryedit
Sets the production start time of the time code, in terms of frames. In query mode, returns the sub-second frame of production start time.
-mayaStartFrame(-msf) float createqueryedit
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 command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

//set the production start time to 1 hour, 33 min, 52 seconds, and 23 frames
timeCode -psh 1 -psm 33 -pss 52 -psf 23;
// query the production start time
timeCode -q -psh;
// result: 1
timeCode -q -psm;
// result: 33