---
title: "getAttachedTo"
canonical: "https://help.vicon.com/space/Shogun17/13536323/getAttachedTo"
format: markdown
---
# Description

Retrieves the BoneNode that a node is attached to (constraining).

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getAttachedTo "sourceName"[-fullPath] [-nameOnly]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `sourceName` | string | yes | Node to retrieve attached BoneNodes for. |

### Flags

| **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. |

## Return value

string array

Returns a string array with the names/paths of all the BoneNodes that are targets in constraints that have the given node as a source.

## Examples

```plaintext
// Get the BoneNodes the LFHD is attached to.
string $bone[] = `getAttachedTo "LFHD"`;
print $bone;
```

# Additional information

## Related commands

- [attach](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537774)
- [getAttached](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536325)
- [getConstraintsThisIsSource](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536555)
- [getConstraintsThisIsTarget](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536355)
- [getSolverBones](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536645)
- [setConstraint](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536910)