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

Gets a list of the sets used in the given selection set

A selection set can contain other selection sets. The command getSelectionSetSets can be used to get the selection sets present in a given selection set. The sets present are returned as a string array.

## Functional area

Selection

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getSelectionSetSets setName` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `setName` | string | yes | The name of the selection set get to get a list of the selection sets it contains. |

### Flags

None

## Return value

string array

Returns a string array of the names of all the selection sets that are part of the given selection set.

## Examples

```plaintext
// Get a list of all the selection sets present in the setBody 
// selection set. 
string $setsInBodySet[] = `getSelectionSetSets "setBody"`;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getSelectionSetNodes](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736714)
- [getSelectionSets](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737561)
- [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)