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

Gets the solving error for the subject(s).

The Issues map displays the solve error (the percentage of markers whose solving constraint error is considered too large) for the subject(s) (see [Get an overview with the time bar issues map](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736522) in *Getting started with Vicon Shogun Post*). This command enables access to this information.

## Functional area

Data Retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getSubjectSolvingConstraintError 'subjectName or all'` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `subjectName` | string | yes | The name of the subject or all. |

### Flags

None

## Return value

float, with range 0.0 to 100.0

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Get solve error of current subject at current frame

string $cs = `getCurrentSubject`;
float $pl = `getSubjectSolvingConstraintError $cs`;
print $pl;

// Get solve error of all subjects at current frame

float $pl = `getSubjectSolvingConstraintError "all"`;
print $pl;

// Get solve error of paul at current frame
float $pl = `getSubjectSolvingConstraintError "paul"`;
print $pl;
```