Convert time
time_convertConvert seconds, frames, and timecode using a composition's frame rate, drop-frame setting, and start timecode; auto-detects input units for accurate After Effects timing.
Instructions
Convert between seconds, frames and timecode using a comp's frame rate, drop-frame setting and Start Timecode (displayStartTime). Input auto-detects: number = seconds, '48f' = frames, 'HH:MM:SS:FF' = timecode (';' = drop-frame), '2.5s'. 'timecode' in the result is measured from the comp start (what other tools accept); 'displayTimecode' is what AE shows. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "time_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frame rate override (no comp needed when given). | |
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| from | No | Input unit (default auto). display_timecode = timecode as shown in AE (Start Timecode is subtracted). | |
| value | No | Value to convert. | |
| values | No | Several values to convert at once. | |
| dropFrame | No | Force drop-frame timecode on/off (29.97/59.94). |