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

Selection sets are used to select a group of nodes that may or may not be in the scene by name. For example, a selection set called `setWaist` might contain all the names for the waist markers you might expect to encounter.

The getSelectionSets command returns a list of all the selection sets currently loaded in Shogun Post.

## Functional area

Selection

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getSelectionSets` |

### Arguments

None

### Flags

None

## Return value

string array

Returns a string array of the names of the selection sets.

## Examples

```plaintext
// Get a list of all the selection sets in Shogun. 
string $selectionSets[] = `getSelectionSets`;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getSelectionSetNodes](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736714)
- [getSelectionSetSets](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736829)
- [isSelectionSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736957)
- [selectionSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736456)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737834)