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

## Examples

`// 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/Shogun16/pages/13366304)
- [setTimebarRangeToPlayRange](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13366303)
- [setTimebarRangeToSelectedRange](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13366305)