---
title: "getSelectionSetNodes"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736714/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

> Macro (scroll-tablelayout)

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