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

Retrieves the name of the current character (subject) in the **Labeling** panel.

## Functional area

Subjects

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getCurrentChar` |

### Arguments

None

### Flags

None

## Return value

string

Returns a string with the name of the current character.

## Examples

```plaintext
// Get the current Character. 
string $curCharacter = `getCurrentChar`;
print $curCharacter;
```

# Additional information

## Related commands

- [getCurrentSubject](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738805)
- [getLabelerChars](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737091)
- [setCurrentSubject](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737554)