/
updateClip
updateClip
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
updateClip ["clip"] |
Arguments
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
Examples
// Set a random key on the selected marker. Then update the Loop setKey "Translation.X" 100; updateClip "MyLoop";
Additional information
Related commands
, multiple selections available,