---
title: "isSelectionSet"
canonical: "https://help.vicon.com/space/Shogun16/13341604/isSelectionSet"
format: markdown
---
# Description

Determines whether a named selection set exists in Shogun Post.

The selection sets that are loaded into Shogun Post are determined by the selection set file specified in the **Preferences** and any selection sets you make via scripting.

The isSelectionSet command can be used to determine if a selection set of a given name exists in Shogun Post.

## Functional area

Selection

# Command syntax

## Syntax

|  |
| --- |
| `isSelectionSet setName` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `isSelectionSet` | string | yes | The name of the selection set to look for. |

### Flags

None

## Return value

boolean

Returns true if the given set exists, false if it does not. 

> Macro (scroll-pagebreak)

## Examples

```plaintext
// See if the selection set setLeftFoot exists in Shogun Post.
if(`isSelectionSet "setLeftFoot"` == true )
  { 
    print "The selection set setLeftFoot is present in Shogun Post";
  }
```

# Additional information

## Related commands

- [getSelectionSetNodes](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341470)
- [getSelectionSets](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341467)
- [getSelectionSetSets](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341455)
- [selectionSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340371)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340380)