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

This command is used to reassemble a set of .c3d files generated by splitting the reconstruction of a take into smaller chunks (see [reconstructChunk](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737045)). For example, a long capture session of 10,000 frames can be reconstructed on five different machines in parallel, each machine processing a different set of 2000 frames. The resulting files can then be reassembled into a single .c3d file using this command.

By default, this command reparents the markers to the first character in the scene, and deletes any other characters in the scene.

## Functional area

Data editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `reassemble "fileArray"[-tolerance integer] [-minGap integer] [-packEach] [-vLabel] [-reparent boolean]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `fileArray` | string | yes | List of files to be reassembled |

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `tolerance` | 1 | integer | — | Maximum number of frames that may overlap between source files when reassembling. The default is 25 frames. |
| `minGap` | 1 | integer | — | The minimum number of frames needed between two markers' data ranges when packing markers. |
| `packEach` | 0 | — | vLabel | Use this option to pack markers during the read operation on each file, rather than after all the markers have been read in. |
| `vLabel` | 0 | — | packEach | Set this option to use velocity labeling, which blends transitions in marker positions between the different file data. |
| `reparent` | 0 | boolean | — | Set to true to reparent all markers to first character (deleting all other characters in the scene). |


      



## Return value

void

## Examples

```plaintext
// Divide up a long reconstruction
reconstructChunk "Take1.x2d" 0 2005 -fileName "Chunk1.c3d";
reconstructChunk "Take1.x2d" 2000 4005 -fileName "Chunk2.c3d";
reconstructChunk "Take1.x2d" 4000 6005 -fileName "Chunk3.c3d"; 
reconstructChunk "Take1.x2d" 6000 8005 -fileName "Chunk4.c3d";
reconstructChunk "Take1.x2d" 8000 10000 -fileName "Chunk5.c3d";
reassemble "Chunk1.c3d" "Chunk2.c3d" "Chunk3.c3d" "Chunk4.c3d" "Chunk5.c3d";
```

# Additional information

## Related commands

- [reconstructChunk](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737045)