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

Collapses the data of one duplicate hierarchy onto the other. Given two selected modules, it copies keys for the source module and all its descendants to the target module (the primary selection) for the active clip. There must be only two selected modules in the scene, and an active clip. Useful when only one hierarchy is needed to represent the data within the file.

## Functional area

Data editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `collapse` |

### Arguments

None

### Flags

None

## Return value

void

## Examples

```plaintext
//import an ASF/AMC pair twice
//make sure and set the import type to createNewAlways
//select Characters
select Actor_2 Actor_1;
collapse;
```

# Additional information

## Related commands

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