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

This command returns a string array of names of constraints that have the given module as a target

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getConstraintsThisIsTarget "module"[-fullPath] [-nameOnly]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `Module` | string | yes | Module to retrieve list of constraints where module is a target. |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `fullPath` | 0 | — | — | 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 | — | — | 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 of names of constraints that have the given module as a target.

## Examples

```plaintext
// Get the constraints that have the bone named Root as a target.
string $constraints[] = `getConstraintsThisIsTarget "Root"`;
print $constraints;
```

# 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)
- [getAttachedTo](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536323)
- [getConstraintsThisIsSource](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536555)
- [getSolverBones](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536645)
- [setConstraint](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536910)