---
title: "getViewTypes"
canonical: "https://help.vicon.com/space/Shogun17/13537004/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

|  |
| --- |
| `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/Shogun17/pages/13540551)
- [viewLayout](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537429)