---
title: "getTimeCodeOffset"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737430/getTimeCodeOffset"
format: markdown
---
# Description

Gets a frame number for the SMPTE offset of current video file.

Returns 0 if there is no video clip in video view.

## Functional area

Data editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getTimeCodeOffset` |

### Arguments

None

### Flags

None

## Return value

integer

Return a frame number corresponding to the timecode offset of the current video file.

## Examples

```plaintext
// Print timecode offset for current video clip 
int $offset = `getTimeCodeOffset`;
print $offset ;
```