---
title: "selectBySide"
canonical: "https://help.vicon.com/space/ShogunPost116/341119572/selectBySide"
format: markdown
---
# Description

Selects bone modules in the scene by their Side attribute.

The Side attribute on bone modules is used for retargeting operations, which relies on body part naming.

## Functional area

Selection

# Command syntax

## Syntax

|  |
| --- |
| `selectBySide sideName1 sideName2...[-a] [-r] [-childOf string]` |

### Arguments

> Macro (scroll-tablelayout)

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `sideName(s)` | string | yes | The side(s) to select by. Must be one of the sides listed in the bone module Side attribute. |

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `a` | 0 | — | r | Selection adds to the current scene selection. The default is to replace the scene selection. |
| `r` | 0 | — | a | Selection removes from the current scene selection. The default is to replace the scene selection. |
| `childOf` | 1 | string | — | Only selects modules that are children of this module name. |

## Return value

void

## Examples

```plaintext
// Select all bone modules with the "Right" side attribute.
selectBySide "Right";
```

# Additional information

## Related commands

- [select](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119520)
- [selectabilityOn](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119526)
- [selectBranch](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119532)
- [selectByName](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119549)
- [selectByPart](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119561)
- [selectByType](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119578)
- [selectChildren](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119584)
- [selectParent](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119656)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119680)
- [selectTree](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119704)
- [setPrimary](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341120069)