---
title: "setTimebarRange"
canonical: "https://help.vicon.com/space/ShogunPost115/276207922/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

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

### Arguments

See above syntax and examples below.

### Flags

See above syntax and examples below.

## Return value

void

> Macro (scroll-pagebreak)

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

# Additional information

## Related commands

- [setTimebarRangeToAnimRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276204766)
- [setTimebarRangeToPlayRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276212577)
- [setTimebarRangeToSelectedRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276206348)