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

Gets the view types currently displayed. This command retrieves the current view types in use into a string array. The different types are perspective, graph, capture, data health, nle, hierarchy, video, front, back, left, right, top and bottom.

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getViewTypes` |

### Arguments

None

### Flags

None

## Return value

string array

## Examples

```plaintext
//get the view types in use into an array
string $vt[] = `getViewTypes`;
 
//print array to the log
print $vt;
```

# Additional information

## Related commands

- [getViewLayout](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738824)
- [viewLayout](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737226)