Convert sequence timecode to seconds
sequence_timecode_to_timeConvert sequence timecodes to seconds from start and 0-based frame numbers while honoring frame rate and start time, so you can map timeline positions accurately.
Instructions
Convert a timecode string in a sequence's own display format to seconds from the sequence start, honouring its frame rate and start time. Accepts "00:01:02:15", drop-frame "00;01;02;15", a frame count or feet+frames ("12+08"), matching the display format; malformed text or a time before the sequence start fails with BAD_ARGS. Returns the time in seconds, the 0-based frame number and the normalised timecode. Use set_playhead_timecode to move the playhead to a timecode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"timecode": "<timecode>"
},
"name": "sequence_timecode_to_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timecode | Yes | Timecode in the sequence's video display format, as shown on the timeline ruler, e.g. "01:00:04:10". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| includes_start_time | No | true = the timecode is a ruler position that includes the sequence start time (zero point), which is subtracted; false = counted from 00:00:00:00. Default true. |