Duik.animation

Duik Animation
Read the Duik User Guide > Animation for more information about each method.

Members

static copied

The animation copied by Duik.animation.copy which can be pasted with Duik.animation.paste.

static functions

All the animation methods stored as objects which can be parsed easily, for example to automatically build a ui with a button for each method.
Properties:
Name Type Description
name string A display name for the method
fn string The source script to eval

Methods

static copy()

Copies the animation from the selected properties. Use Duik.animation.paste to paste it.

static klean(separateDimensionsopt, spatialInterpolationopt, smoothCurvesopt, smoothUsingExpressionopt, removeUnnecessaryKeysopt, smoothInopt, smoothOutopt)

Automatically clean the animation of the selected properties.
Parameters:
Name Type Attributes Default Description
separateDimensions boolean <optional>
true Wether to separate the dimensions of the property before kleaning it.
spatialInterpolation boolean <optional>
true Wether to fix spatial interpolation (when dimensions are not separated).
smoothCurves boolean <optional>
true Wether to apply a smart algorithm to smooth the curves.
smoothUsingExpression boolean <optional>
true Wether to smooth the curves using expressions. Set to false to adjust directly the interpolation of the keyframes.
removeUnnecessaryKeys boolean <optional>
true Wether to remove all redundants keyframes.
smoothIn boolean <optional>
true Wether to smooth the incoming curve if smoothCurves is set to true
smoothOut boolean <optional>
true Wether to smooth the outgoing curve if smoothCurves is set to true

static motionTrail(coloropt, useExistingopt)

Draws the trajectory of the selected layers
Parameters:
Name Type Attributes Default Description
color Array.<float> | null <optional>
null The [R,G,B,A] color of the trails. Random color if set to null.
useExisting boolean <optional>
true Wether to use the existing motion trail layer, if any

static paste(replace, offset, reverse)

Pastes the animation previously copied by Duik.animation.copy to the selected properties.
Parameters:
Name Type Description
replace boolean Wether to completely erase and replace the current animation
offset boolean Wether to offset the animation from the current value
reverse boolean Wether to reverse the animation

static switchIkFk()

Switches the selected controller between IK and FK

static timeRemap()

Activates time remapping on the selected layers, and add the looper Duik.constraints.loop to it.

static xSheet(autoDetectopt)

Adds an Exposure Sheet (X-Sheet) effect on the selected layers or composition
Parameters:
Name Type Attributes Default Description
autoDetect boolean <optional>
false If true, will try to detect and animate the best exposure values for a nice traditionnal look.