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

Checks the current value of the selection filter object.

One of the active views must be a 3D view for this command to work. Returns a Boolean value (on/off)

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getSelectionFilter "objectName"` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `objectName` | string | yes | Name of the object or module whose selection state is to be retrieved. |

### Flags

None

## Return value

boolean

## Example

```plaintext
// Checking Marker selection filter state. 
Boolean $Value = `getSelectionFilter "Marker"`;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getViewFilter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736668)
- [setSelectionFilter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737140)
- [setViewFilter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739217)