---
title: "selectByPart"
canonical: "https://help.vicon.com/space/ShogunPost122/1416136677/selectByPart"
format: markdown
---
# Description

Selects bone modules in the scene by their Part_Name attribute.

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

## Functional area

Selection

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `selectByPart partName1 partName2...[-a] [-r] [-childOf string] [-side string]` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `partName(s)` | string | yes | The part name(s) to select by. Must be one of the names in the bone module Part_Name 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. |
| > Macro (scroll-pagebreak)<br>`childOf` | 1 | string | — | Only selects modules that are children of this module name. |
| `side` | 1 | string | — | Only selects modules that have the side attribute set to this. |

## Return value

void

## Examples

```plaintext
// Select all bone modules with the "Collar" part name. 
selectByPart "Collar";
```

# Additional information

## Related commands

- [select](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135864)
- [selectabilityOn](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135885)
- [selectBranch](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136732)
- [selectByName](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136305)
- [selectBySide](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416138197)
- [selectByType](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135181)
- [selectChildren](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136370)
- [selectParent](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135078)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135786)
- [selectTree](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135729)
- [setPrimary](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135375)