---
title: "Timecode"
description: "API documentation for Timecode"
url: https://developer.disguise.one/python-api/docs/timecode/
---

# Timecode

See also: [Track & Sequencing Guide](/plugins/guides/track-and-sequencing)

Base class: _\_BlipValue_

## Properties

#### **t** : _float_ _(Read-Only)_

## Variables

#### **SMPTE23976** : _Final\[[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)\]_ = SMPTEClockType.SMPTE23976

#### **SMPTE24** : _Final\[[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)\]_ = SMPTEClockType.SMPTE24

#### **SMPTE25** : _Final\[[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)\]_ = SMPTEClockType.SMPTE25

#### **SMPTE2997** : _Final\[[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)\]_ = SMPTEClockType.SMPTE2997

#### **SMPTE2997DF** : _Final\[[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)\]_ = SMPTEClockType.SMPTE2997DF

#### **SMPTE30** : _Final\[[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)\]_ = SMPTEClockType.SMPTE30

## Constructors

#### **\_\_init\_\_**(self)

#### **\_\_init\_\_**(self, other: _[Timecode](/python-api/docs/timecode#timecode)_)

Copy constructor for Timecode

#### **\_\_init\_\_**(self, t\_: _float_, clockType\_: _[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)_, customFps: _optional\[float\]_)

#### **\_\_init\_\_**(self, t\_: _float_, clockType\_: _[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)_)

## Methods

#### **asString**(self, highResolution: _bool_) -> _str_

#### **fps**(self) -> _float_

The rate the frame field counts at, which is the clock type’s.

## Static Methods

#### **clockTypeToUiString**(clockType: _[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)_, customFps: _optional\[float\] | std\_nullopt | float_) -> _str_

#### **fromString**(str: _str_, clock: _[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)_) -> _[Timecode](/python-api/docs/timecode#timecode)_

#### **fromStringWithFps**(str: _str_, clock: _[SMPTEClockType](/python-api/docs/smpteclocktype#smpteclocktype)_, customFps: _optional\[float\] | std\_nullopt | float_) -> _[Timecode](/python-api/docs/timecode#timecode)_

## Special Methods

#### **\_\_eq\_\_**(self, other: _[Timecode](/python-api/docs/timecode#timecode)_) -> _bool_

#### **\_\_ne\_\_**(self, other: _[Timecode](/python-api/docs/timecode#timecode)_) -> _bool_

#### **\_\_repr\_\_**(self) -> _str_

#### **\_\_str\_\_**(self) -> _str_
