---
title: "setTimeCodeOffset"
canonical: "https://help.vicon.com/space/Shogun114/196382526/setTimeCodeOffset"
format: markdown
---
# Description

Specifies a time code offset to imported data in order to sync that data with the data in the current scene

Sets the SMPTE offset (in frames) on a clip. If no clip name is specified, then the offset will be applied to the active clip.

## Functional area

Data editing

# Command syntax

## Syntax

|  |
| --- |
| `setTimeCodeOffset offset [-onClip string]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `offset` | string | yes | The offset to apply |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `onClip` | 1 | string | — | Name of the clip on which to set the time code offset |

> Macro (scroll-pagebreak)

## Return value

void

## Examples

```plaintext
// Set the SMPTE offset on the active clip
int $offset = 4;
setTimeCodeOffset $offset;
```

# Additional information

## Related commands

- [getTimeCodeOffset](https://vicon-help.atlassian.net/wiki/spaces/Shogun114/pages/196380798)