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

Zooms the active view so that all objects are visible.

This command resets the navigational state of the viewport to frame all of the objects in the scene. Optionally, it frames just the current selection.

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `zoomView [-all] [-selected]` |

### Arguments

None

### Flags

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `all` | 0 | — | — | Zoom all views |
| `selected` | 0 | — | — | Zoom on selected objects in the view only |

## Return value

void

## Examples

```plaintext
zoomView -all;
// Frame all objects in all visible views.
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

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