# Viewers

The **Viewers** object is a collection of all currently open standalone [image viewers](https://chaoses-ib.gitbook.io/directory-opus/manual/additional_functionality/viewing_images). It can be obtained via the [**DOpus**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/dopus)**.viewers** property.

&#x20;

| Property Name      | Return Type                                                                                                                           | Description                                                                                                                                                                                    |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *\<default value>* | *collection:*[**Viewer**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/viewer) | Lets you enumerate the currently open viewers.                                                                                                                                                 |
| lastactive         | *object:*[**Viewer**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/viewer)     | Returns a [**Viewer**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/viewer) object representing the most recently active viewer window. |

| Method Name | **Arguments** | Return Type | Description                                                                                                                                                                                                                                                                        |
| ----------- | ------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Update      | *none*        | *none*      | The first time a script accesses the **DOpus.viewers** property, a snapshot is taken of all currently open viewers. If anything opens or closes viewers after this, these changes will not be reflected by snapshot unless you re-synchronize it by calling the **Update** method. |
