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

> Macro (scroll-pagebreak)

## 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"`;
```

# Additional information

## Related commands

- [getSelectionSetNodes](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost119/pages/850467756)
- [getSelectionSets](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost119/pages/850467764)
- [isSelectionSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost119/pages/850464275)
- [selectionSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost119/pages/850465051)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost119/pages/850465139)