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

Retrieves an array of the nodes (typically markers) attached to (constraining) a bone.

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getAttached "SolvingBone or LabelingBone Name"[-fullPath] [-nameOnly]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `SolvingBone or`  
`LabelingBone Name` | string | yes | BoneNode to retrieve list of attached nodes for. |

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `fullPath` | 0 | — | nameOnly | Specifies that the full path of each node be returned rather than the "minimum" path, which is the minimum path needed to uniquely identify a node. |
| `nameOnly` | 0 | — | fullPath | Specifies that only the name of each node be returned rather than the "minimum" path, which is the minimum path needed to uniquely identify a node. |

> Macro (scroll-pagebreak)

## Return value

string array

Returns a string array with the names/paths of all of the nodes attached to "boneName"

## Examples

```plaintext
// Get the Markers attached to the head bone. 
string $constraints[] = `getAttached "head"`;
print $constraints;
```

# Additional information

## Related commands

- [attach](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736625)
- [getAttachedTo](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738250)
- [getConstraintsThisIsSource](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737195)
- [getConstraintsThisIsTarget](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736814)
- [getSolverBones](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739085)
- [setConstraint](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737004)