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

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

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

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

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `sourceName` | string | yes | Node to retrieve attached BoneNodes 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 (16dcb1b2-c6fb-4c23-a096-38455b87e6a8/1fa5e51a-a28e-46e1-9b5c-734b339f025f/static/scroll-pagebreak)

## 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/ShogunPost121/pages/1253736625)
- [getAttached](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738694)
- [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)