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

Set auto switch current subject.

When active (the default), the current subject automatically changes to match the selected object's subject, if the object is a descendant of a subject.

## Functional area

Subjects

# Command syntax

## Syntax

|  |
| --- |
| `setAutoSwitchCurrentSubject enabled` |

### Arguments

See above syntax.

### Flags

None

## Return value

void

# Additional information

## Related commands

- [getCurrentChar](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536373)
- [getCurrentSubject](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13540520)
- [setCurrentSubject](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13540591)