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

Updates a clip/blend

NLE clips, like loops and simple blends, must be updated any time one of their source clip(s) has their animation data changed. For example, if you change a key on a marker in the clip that a loop is looping, then the loop must be updated, or re-evaluated. Normally, this happens for you as you are changing values in the GUI. However, if you change animation data during a script, the loop is not updated until the script finishes executing. This enables you to update the loop (or other blend type) while a script is executing.

This command is useful if you need to query the blend for a value after you have changed some animation data.

## Functional area

Data manipulators

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `updateClip ["clip"]` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `clip` | string | no | The name of the clip to update. If not specified, then the active clip is updated. |

### Flags

None

## Return value

void 

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Set a random key on the selected marker. Then update the Loop
setKey "Translation.X" 100; 
updateClip "MyLoop";
```

# Additional information

## Related commands

- [getActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737428)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736878)