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

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

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getConstraintsThisIsSource "module"[-nameOnly] [-fullPath] [-solvingOnly] [-labelingOnly]` |

### Arguments

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

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `nameOnly` | 0 | — | — | Only the name of each node is returned rather than the "minimum" path (the minimum needed to uniquely identify a node). |
| `fullPath` | 0 | — | — | The full path of each node is returned rather than the "minimum" path (the minimum needed to uniquely identify a node). |
| `solvingOnly` |  |  |  |  |
| `labelingOnly` |  |  |  |  |

## Return value

string array

Returns a string array of names of constraints that have the given module as a source.

## Examples

```plaintext
// Get the constraints that have LFHD as a source.
string $constraints[] = `getConstraintsThisIsSource "LFHD"`;
print $constraints;
```

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