---
title: "setAutoSwitchCurrentSubject"
canonical: "https://help.vicon.com/space/ShogunPost121/1253739184/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

> Macro (scroll-tablelayout)

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

### Arguments

See above syntax.

### Flags

None

## Return value

void

# Additional information

## Related commands

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