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

|  |
| --- |
| `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/Shogun18/pages/13668492)
- [getSelectionSets](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668490)
- [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)