---
title: "setTimeCodeOffset"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737738/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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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 |

## 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/ShogunPost121/pages/1253737430)