---
title: "setActiveTake"
canonical: "https://help.vicon.com/space/Shogun112/31229563/setActiveTake"
format: markdown
---
# Description

Sets the scene's active take

The active take is the source capture file (x2d file). There can only be one active take. When you reconstruct, you are reconstructing data from the active take.

Calling this method is the equivalent of importing an x2d file. It is provided for convenience and to enable you to "clear" the active take by passing an empty string ( "" ) as the active take.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `setActiveTake x2dFile[-loadCal] [-loadChars] [-loadHardwareSettings] [-loadVideo] [-moveVideo]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `x2dFile` | string | yes | Full path to the x2d file. If an empty string is passed in, then the scene's active take will be cleared. |

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `loadCal` | 0 | — | — | Loads the associated calibration file when loading the x2d file |
| `loadChars` | 0 | — | — | Loads the associated characters when loading the x2d file |
| `loadHardwareSettings` |  |  |  |  |
| `loadVideo` |  |  |  |  |
| `moveVideo` |  |  |  |  |

## Return value

void

## Examples

```plaintext
// This will set the active take, loading in the calibration file 
// associated with the take
setActiveTake "C:/MyProduct/CaptureDay1/Session1/Take0002.x2d" -loadCal;
```

# Additional information

## Related commands

- [getActiveTake](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31231501)