/
getTime
getTime
Description
Returns the current frame number or time in seconds.
The getTime command identifies the current time, in terms of frames or seconds.
Functional area
Data retrieval
Command syntax
Syntax
getTime [-s] |
Arguments
None
Flags
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
s | 0 | — | — | Return the current time in seconds. Otherwise, time is returned as a frame number. |
Return value
float
Returns the current scene time in seconds or frames.
Examples
int $time = `getTime`; print $time; // Identifies the current frame and saves the result to an // integer variable. float $time = `getTime`; print $time; // Identifies the current frame and saves the result to a // floating point variable.
Additional information
Related commands
, multiple selections available,