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

Gets the constraint offset in world space. This command gets the world space value that represents where the constraints target would be if the solve had no error.

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getConstraintPos "SolvingConstraint or LabelingConstraint name"` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `SolvingConstraint` or   
`LabelingConstraint name` | string | yes | Name of the constraint to operate on |

### Flags

None

## Return value

vector

Returns a vector consisting of the world space value of the constraint offset.

## Examples

```plaintext
// Get the world space position of the Constraint offset 
// for constraint LFHD_head 
vector $targetPos = getConstraintPos( "LFHD_head" ); 
print $targetPos;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getConstraintOffset](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737192)