---
title: "selectByType"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737710/selectByType"
format: markdown
---
# Description

This command enables you to identify and select all the objects of a named type or types in your scene.

Using no options deselects all other objects first, then selects only the named types.

selectByType provides the ability to do things like:

- Select all solvers to activate or deactivate them,or
- Select all constraints to reset them, or
- Select all bones to cutKeys and clear the animation from them.

## Functional area

Selection

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `selectByType [-a] [-r] [-childOf string]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `Type` | string | yes | The type of module to select. |

### Flags

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `a` | 0 | — | r | — |
| `r` | 0 | — | a | — |
| `childOf` | 1 | string |  | Only selects modules that are children of this module name. |

> Macro (scroll-pagebreak)

## Return value

void

## Examples

```plaintext
// These commands select all the Bone modules in your 
// scene, and then remove all the animation from those modules 
// resetting the skeleton(s) to the base pose.
selectByType Bone;
cutKeys -all;
```

# Additional information

## Related commands

- [select](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737508)
- [selectabilityOn](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737978)
- [selectBranch](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737247)
- [selectByName](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739192)
- [selectByPart](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736482)
- [selectBySide](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738001)
- [selectChildren](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738333)
- [selectParent](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737538)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737834)
- [selectTree](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736558)
- [setPrimary](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736466)