---
title: "getSelectionSets"
canonical: "https://help.vicon.com/space/Shogun18/13668490/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

|  |
| --- |
| `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/Shogun18/pages/13668492)
- [getSelectionSetSets](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668488)
- [isSelectionSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668956)
- [selectionSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668037)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668147)