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

Returns the index of the active workspace view.

Each workspace view is assigned an index number. If the view is not split, the single view index is 0. If the view is split, index number increases, moving top to bottom then left to right.

This command returns the index number for the selected or active view when run.

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getActiveView` |

### Arguments

None

### Flags

None

## Return value

integer

## Examples

```plaintext
// Prints the active view index number to the command line 
int $temp = `getActiveView`;
print $temp;
```

# Additional information

## Related commands

- [getActiveViewType](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737644)