---
title: "getSelectionSetNodes"
canonical: "https://help.vicon.com/space/Shogun17/13536780/getSelectionSetNodes"
format: markdown
---
# Description

Gets the nodes in the given selection set.

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 getSelectionSetNodes command returns a list of all the nodes in the given selection set as a string array.

## Functional area

Selection

# Command syntax

## Syntax

|  |
| --- |
| `getSelectionSetNodes setName` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `setName` | string | yes | Specifies the name of the selection set to get the nodes of. |

### Flags

None

## Return value

string array

Returns a string array of nodes in the given selection set.

## Examples

```plaintext
// Get all the nodes in the selection set setWaist.
string $waistNodes = `getSelectionSetNodes "setWaist"`;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getSelectionSets](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536778)
- [getSelectionSetSets](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536776)
- [isSelectionSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537094)
- [selectionSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537262)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537218)