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

Enables you to set the time bar view range. This is similar to zooming and panning in the view, but via scripting.

## Functional area

Playback Control

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `setTimebarRange inTime outTime [-start] [-end]` |

### Arguments

See above syntax and examples below.

### Flags

See above syntax and examples below.

## Return value

void

## Examples

```plaintext
// Set the view range from frame 25 to 50
setTimebarRange 25 50;

// Set the view range start to 30
setTimebarRange 30 -start;

// Set the view range end to the current frame
setTimebarRange -end;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [setTimebarRangeToAnimRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737372)
- [setTimebarRangeToPlayRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737502)
- [setTimebarRangeToSelectedRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736662)