Namespace: Library

DuAEExpression. Library

The expression library
Use DuAEExpression.Library.get and DuAEExpression.Library.getRequirements
to easily include the methods and classes listed here to your expressions.
These methods take the name (listed here) of the function/class as arguments.

Classes

"FuzzyLogic"
"FuzzyVeracity"
"Matrix"

Members

staticDuAEExpression.Library."limit"

Clamps a value, but with a smooth interpolation according to a softness parameter

Methods

staticDuAEExpression.Library."addNoise"(val, quantity)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23924
Adds some noise to a value.
You may use seedRandom() before using this function as it will influence the generated noise. A timeless noise can be achieved with seedRandom(index,true) for example.
Name Type Description
val number | Array.<number> The value to add noise to.
quantity float The quantity of noise. A percentage. 100 means the value can range from (val * 0) to (val * 2).
Examples
seedRandom(index, true) // a timeless noise
addNoise(value, 50 ); // the property value will have noise between (value * 0.5) and (value * 1.5) which won't vary through time.
seedRandom(index, false);
addNoise(value, 33 ); // the noise will change at each frame, varying between (value * .66) and (value * 1.33)

staticDuAEExpression.Library."addPath"(path1, path2, path2weight){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23536
Adds two paths together.
The paths must be objects with three array attributes: points, inTangents, outTangents
Name Type Description
path1 Object First path
path2 Object Second path
path2weight float A weight to multiply the second path values
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."addPoints"(p1, p2, w){Array.<Array.<float>>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23254
Adds two lists of points/vectors.
Name Type Description
p1 Array.<Array.<float>> The list of points
p2 Array.<Array.<float>> The other list of points
w float A weight to multiply the values of p2
Returns:
Type Description
Array.<Array.<float>> The added points

staticDuAEExpression.Library."animate"(keyframes, loopOut, loopIn, time){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22478
Animates the property using the given keyframes
Name Type Default Description
keyframes Array.<Object> The keyframes. An object with four properties:
value The value of the keyframe
time The time of the keyframe
interpolation (optional. Default: linear) A function taking 5 arguments to interpolate between this keyframe and the next one
params (optional.) A sixth argument passed to the interpolation function. To be used with DuAEF interpolations.
Note that the keyframes must be sorted. The function does not sort them, as it would have a bad impact on performance.
loopOut string 'none' optional One of 'none', 'cycle', 'pingpong'.
loopIn string 'none' optional One of 'none', 'cycle', 'pingpong'.
time float time optional Use this to control how time flows.
Returns:
Type Description
number the animated value.
Example
var keyframes = [
   {value: 0, time: 1, interpolation: linear},
   {value: 180, time: 2, interpolation: gaussianInterpolation, params: -0.5}, //You need to include the gaussianInterpolation function from DuAEF
   {value: 250, time: 4, interpolation: ease},
   {value: 360, time: 5},
];
animate(keyframes, 'cycle', 'pingpong');

staticDuAEExpression.Library."bezierInterpolation"(t, tMin, tMax, value1, value2, bezierPoints){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22539
Interpolates a value with a bezier curve.
This method can replace linear() and ease() with a custom bézier interpolation.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
bezierPoints Array.<number> [0.33,0.0,0.66,1.0] optional an Array of 4 coordinates wihtin the [0.0, 1.0] range which describes the Bézier interpolation. The default mimics the native ease() function
[ outTangentX, outTangentY, inTangentX, inTangentY ]
Returns:
Type Description
number the value.

staticDuAEExpression.Library."bounce"(t, elasticity, damping, vAtTime){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22952
Bounce, to be used when the speed is 0.
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
elasticity float The elasticity, which controls the amplitude and frequence according to the last known velocity
damping float Damping
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."checkDuikEffect"(fx, duikMatchName){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23609
Checks the type of a pseudo-effect used by Duik.
This is a workaround for the missing matchName in expressions.
Pseudo-Effects used by Duik start with a hidden property which name is the same as the matchName of the effect itself (without the 'Pseudo/' part).
Name Type Description
fx Property The effect to check
duikMatchName string The matchName of a pseudo-effect used by Duik (without the 'Pseudo/' part)
Returns:
Type Description
boolean True when the property at propIndex is named propName
Example
if ( checkEffect(thisLayer.effect(1), "DUIK parentConstraint2") ) { "This is the second version of the parent constraint by Duik" }
else { "Who knows what this is?" }

staticDuAEExpression.Library."checkEffect"(fx, propIndex, propName){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23632
Checks the type of an effect.
This is a workaround for the missing matchName in expressions.
It checks if the given effect has a specific property at a specific index.
Name Type Description
fx Property The effect to check
propIndex int The index of the property
propName string The expected name of the property. Be careful with the internationalization of After Effects...
Returns:
Type Description
boolean True when the property at propIndex is named propName
Example
if ( checkEffect(thisLayer.effect(1), 1, "Blur") ) { "The first effect is a blur!" }
else { "Who knows what this is?" }

staticDuAEExpression.Library."continueIn"(t, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23015
Animatable equivalent to loopIn('continue').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all previous frames.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."continueOut"(t, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23036
Animatable equivalent to loopOut('continue').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."cycleIn"(t, nK, o, vAtTime, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23060
Animatable equivalent to loopIn('cycle') and loopIn('offset').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all previous frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
o Boolean Wether to offset or cycle
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."cycleOut"(t, nK, o, vAtTime, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23100
Animatable equivalent to loopOut('cycle') and loopOut('offset').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
o Boolean Wether to offset or cycle
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."dishineritRotation"(l){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23951
Removes the ancestors rotation from the rotation of a layer. This is very useful to make a layer keep its orientation without being influenced by its parents.
Name Type Default Description
l Layer thisLayer optional The layer
Returns:
Type Description
float The new rotation value, in degrees.
Examples
//in a rotation property, just include the function and use:
dishineritRotation();
//the layer will now keep its own orientation.
//you can also combine the result with something else
var result = dishineritRotation();
result + wiggle(5,20);

staticDuAEExpression.Library."dishineritScale"(l){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23982
Removes the ancestors scale from the scale of a layer. This is very useful to make a layer keep its scale without being influenced by its parents.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<float> The new scale value, in percent.
Examples
//in a rotation property, just include the function and use:
dishineritScale();
//the layer will now keep its own scale.
//you can also combine the result with something else
var result = dishineritScale();
result + wiggle(5,20);

staticDuAEExpression.Library."expInterpolation"(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22586
Interpolates a value with an exponential function.
This method can replace linear() and ease() with a gaussian interpolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."fromGroupToLayer"(point){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24013
Converts the point coordinates from the current group in the shape layer to the Layer.
Use toWorld and toComp with the result if you need te coordinates in the world or the comp.
Name Type Description
point Array.<number> The 2D coordinates of the point in the current group.
Returns:
Type Description
Array.<number> The 2D coordinates of the point in the Layer.

staticDuAEExpression.Library."fromLayerToGroup"(point){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24030
Converts the point coordinates from Layer to the current group in the shape layer.
Use fromWorld or fromComp first if you need to convert from the world or composition coordinates, and pass the result to this function.
Name Type Description
point Array.<number> The 2D coordinates of the point in the Layer.
Returns:
Type Description
Array.<number> The 2D coordinates of the point in the current group.

staticDuAEExpression.Library."gaussian"(value, min, max, center, fwhm){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23303
The gaussian function
Name Type Default Description
value Number The variable
min Number 0 optional The minimum return value
max Number 1 optional The maximum return value
center Number 0 optional The center of the peak
fwhm Number 1 optional The full width at half maximum of the curve
Returns:
Type Description
Number The result

staticDuAEExpression.Library."gaussianInterpolation"(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22617
Interpolates a value with a gaussian function.
This method can replace linear() and ease() with a gaussian interpolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 0 optional The raising speed in the range [-1.0, 1.0].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."gaussianRateToBezierPoints"(rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22655
Converts a Gaussian rate (as used with gaussianInterpolation) to the closest possible Bézier controls for use with bezierInterpolation.
Name Type Description
rate number The raising speed in the range [-1.0, 1.0].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."getCompScale"(l, t){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24046
Gets the "real" scale of a layer, resulting to its scale property, the scale of its parents, and it's location in Z-space if it's 3D.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer thisLayer optional The layer
t number time optional The time when to get the scale
Returns:
Type Description
number The scale ratio. This is not a percent, 1.0 is 100%.

staticDuAEExpression.Library."getEffectLayer"(fx, ind){Layer|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23654
Gets a layer from a layer property in an effect, without generating an error if "None" is selected with the Legacy expression engine.
Name Type Description
fx Property The effect
ind int | string The index or the name of the property
Returns:
Type Description
Layer | null The layer, or null if set to "None"

staticDuAEExpression.Library."getGroupTransformMatrix"(prop){Matrix}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24066
Gets the transformation Matrix for the current group in a shape layer, including the transformation from the ancestor groups
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
prop Property thisProperty optional The property from which to get the matrix
Returns:
Type Description
Matrix The 2D Transform Matrix.

staticDuAEExpression.Library."getLayerCompPos"(t, l){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24099
Gets the comp position (2D Projection in the comp) of a layer.
Name Type Default Description
t number time optional Time from when to get the position
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<number> The comp position

staticDuAEExpression.Library."getLayerDistance"(other, origin, t){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24119
Gets the world position of a layer.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
other Layer The other layer
origin Layer thisLayer optional The origin
t number time optional Time from when to get the position
Returns:
Type Description
Array.<number> The world position

staticDuAEExpression.Library."getLayerWorldPos"(t, l){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24137
Gets the world position of a layer.
Name Type Default Description
t number time optional Time from when to get the position
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<number> The world position

staticDuAEExpression.Library."getLayerWorldSpeed"(t, l){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24155
Gets the world instant speed of a layer.
Name Type Default Description
t number time optional The time when to get the velocity
l Layer thisLayer optional The layer
Returns:
Type Description
number A positive number. The speed.

staticDuAEExpression.Library."getLayerWorldVelocity"(t, l){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24171
Gets the world instant velocity of a layer.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number time optional The time when to get the velocity
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<number> The velocity.

staticDuAEExpression.Library."getNextKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22823
Gets the key immediately before the given time
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getNextStopKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22845
Gets the next key where there is no motion after it
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getOrientation"(l){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24185
Gets the world orientation of a (2D) layer.
Name Type Description
l Layer The layer to get the orientation from
Returns:
Type Description
float The orientation, in degrees.

staticDuAEExpression.Library."getOrientationAtTime"(l, t){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24231
Gets the world orientation of a (2D) layer at a specific time.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer The layer to get the orientation from
t float time optional The time at which to get the orientation
Returns:
Type Description
float The orientation, in degrees.

staticDuAEExpression.Library."getPath"(){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23667
Gets the path from the current property at a given time.
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."getPrevKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22868
Gets the key immediately before the given time
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getPrevStartKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22890
Gets the previous key where there is no motion before it
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getPropFromPath"(l, p){Property}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23685
Gets a property from an array of indices as returned by getPropPath.
Name Type Description
l Layer The layer containing the needed property
p Array.<int> The indices to the property.
Returns:
Type Description
Property The property.

staticDuAEExpression.Library."getPropPath"(){Array.<int>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23701
Gets an array of all indices needed to get the current property from the layer level.
Returns:
Type Description
Array.<int> All indices to the property.

staticDuAEExpression.Library."getPropWorldSpeed"(t, prop){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24252
Gets the world speed of a property.
Name Type Default Description
t number time optional Time from when to get the position
prop Layer thisProperty optional The property
Returns:
Type Description
Array.<number> The world speed

staticDuAEExpression.Library."getPropWorldValue"(t, prop){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24268
Gets the world coordinates of a property.
Name Type Default Description
t number time optional Time from when to get the position
prop Layer thisProperty optional The property
Returns:
Type Description
Array.<number> The world coordinates

staticDuAEExpression.Library."getPropWorldVelocity"(t, prop){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24287
Gets the world velocity of a property.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number time optional Time from when to get the position
prop Layer thisProperty optional The property
Returns:
Type Description
Array.<number> The world velocity

staticDuAEExpression.Library."getSameProp"(l){Property}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23728
Gets the same property as the current one but from another layer.
Name Type Description
l Layer The layer containing the needed property
Returns:
Type Description
Property The property.

staticDuAEExpression.Library."getScale"(l){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24300
Gets the world scale of a layer.
Name Type Description
l Layer The layer to get the scale from
Returns:
Type Description
Array.<float> The scale, in percent.

staticDuAEExpression.Library."inverseGaussian"(v, min, max, center, fwhm){Array.<Number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23331
The inverse gaussian function
Name Type Default Description
v Number The variable
min Number 0 optional The minimum return value of the corresponding gaussian function
max Number 1 optional The maximum return value of the corresponding gaussian function
center Number 0 optional The center of the peak of the corresponding gaussian function
fwhm Number 1 optional The full width at half maximum of the curve of the corresponding gaussian function
Returns:
Type Description
Array.<Number> The two possible results, the lower is the first in the list. If both are the same, it is the maximum

staticDuAEExpression.Library."inverseLogistic"(v, midValue, min, max, rate){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23360
The inverse logistic function (inverse sigmoid)
Name Type Default Description
v Number The variable
midValue Number 0 optional The midpoint value, at which the function returns max/2 in the original logistic function
min Number 0 optional The minimum return value of the original logistic function
max Number 1 optional The maximum return value of the original logistic function
rate Number 1 optional The logistic growth rate or steepness of the original logistic function
Returns:
Type Description
Number The result

staticDuAEExpression.Library."isAfterLastKey"(){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22911
Checks if current time is after the time of the last key in the property
Returns:
Type Description
boolean true if time is > lastkey.time

staticDuAEExpression.Library."isKeyTop"(k, axis){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22927
Checks if the key is a maximum or minimum
Name Type Description
k Keyframe The key to check
axis int The axis to check for multi-dimensionnal properties
Returns:
Type Description
boolean true if the key is a maximum or minimum

staticDuAEExpression.Library."isLayer"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23742
Checks if a property is a layer. Useful when traversing up the property tree to stop when getting the layer.
Name Type Description
prop Property The property to test
Returns:
Type Description
boolean true if the prop is a layer

staticDuAEExpression.Library."isPath"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23756
Checks if a property is a path property.
Name Type Description
prop Property The property
Returns:
Type Description
boolean true if the property is a path property.

staticDuAEExpression.Library."isPosition"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23775
Checks if a property is a transform.position property.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
prop Property thisProperty optional The property
Returns:
Type Description
boolean true if the property is the transform.position property.

staticDuAEExpression.Library."isSpatial"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23788
Checks if a property is spatial
Name Type Default Description
prop Property thisProperty optional The property to check
Returns:
Type Description
boolean true if the property is spatial.

staticDuAEExpression.Library."isStill"(t, threshold, axis){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23807
Checks if the current property is animated at a given time.
Name Type Default Description
t number time optional The time
threshold number 0.01 optional The speed under which the property is considered still.
axis number -1 optional The axis to check. If < 0, will check all axis.
Returns:
Type Description
boolean true if the property does not vary.

staticDuAEExpression.Library."lastActiveTime"(prop, t){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23832
Checks the last previous time at which the property value was not 0. (meant to be used on boolean property, works on single dimension properties too).
Name Type Description
prop Property The property to check
t float The time before which to run the check
Returns:
Type Description
float The last active time before t

staticDuAEExpression.Library."linearExtrapolation"(t, tMin, tMax, value1, value2){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22741
Interpolates a value with a linear function, but also extrapolates it outside of known values.
This method can replace linear(), adding extrapolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate and extrapolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
Returns:
Type Description
number the value.

staticDuAEExpression.Library."logInterpolation"(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22764
Interpolates a value with a logarithmic function.
This method can replace linear() and ease() with a gaussian interpolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."logistic"(value, midValue, min, max, rate){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23406
The logistic function (sigmoid)
Name Type Default Description
value Number The value
midValue Number 0 optional The midpoint value, at which the function returns max/2
min Number 0 optional The minimum return value
max Number 1 optional The maximum return value
rate Number 1 optional The logistic growth rate or steepness of the function
Returns:
Type Description
Number The result in the range [min, max] (excluding min and max)

staticDuAEExpression.Library."logisticInterpolation"(t, tMin, tMax, value1, value2, rate, tMid){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22798
Interpolates a value with a logistic (sigmoid) function.
This method can replace linear() and ease() with a gaussian interpolation.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
tMid number optional The t value at which the interpolated value should be half way. By default, (tMin+tMax)/2
Returns:
Type Description
number the value.s

staticDuAEExpression.Library."mean"(values){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23426
Returns the mean of a set of values
Name Type Description
values Array.<Number> The values
Returns:
Type Description
Number The mean

staticDuAEExpression.Library."multPath"(path, weight){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23559
Multiplies a path with a scalar.
The path must be an object with three array attributes: points, inTangents, outTangents
Name Type Description
path Object The path
weight float The multipliers
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."multPoints"(p, w){Array.<Array.<float>>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23447
Multiplies a list of points/vectors with a scalar.
Name Type Description
p Array.<Array.<float>> The list of points
w float The multiplier
Returns:
Type Description
Array.<Array.<float>> The multiplied points

staticDuAEExpression.Library."nextActiveTime"(prop, t){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23855
Checks the next time at which the property value was not 0. (meant to be used on boolean property, works on single dimension properties too).
Name Type Description
prop Property The property to check
t float The time after which to run the check
Returns:
Type Description
float The next active time after t

staticDuAEExpression.Library."normalizeWeights"(weights, sum){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23465
Normalizes a list of weights so their sum equals 1.0
Name Type Description
weights Array.<float> The weights to normalize
sum float optional The sum of the weights; provide it if it's already computed to improve performance.
Returns:
Type Description
Array.<float> The normalized weights

staticDuAEExpression.Library."overshoot"(t, elasticity, damping, vAtTime){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23139
Overshoot animation, to be used when the speed is 0.
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
elasticity float The elasticity, which controls the amplitude and frequence according to the last known velocity
damping float Damping
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."pingPongIn"(t, nK, vAtTime, damping){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23175
Animatable equivalent to loopIn('pingpong').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all previous frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float The new value

staticDuAEExpression.Library."pingPongOut"(t, nK, vAtTime, damping){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23216
Animatable equivalent to loopOut('pingpong'). Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float The new value

staticDuAEExpression.Library."subPath"(path1, path2, path2weight){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23583
Substracts two paths together.
The paths must be objects with three array attributes: points, inTangents, outTangents
Name Type Description
path1 Object First path
path2 Object Second path
path2weight float A weight to multiply the second path values
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."subPoints"(p1, p2, w){Array.<Array.<float>>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23505
Substracts two lists of points/vectors.
Name Type Description
p1 Array.<Array.<float>> The list of points
p2 Array.<Array.<float>> The other list of points
w float A weight to multiply the values of p2
Returns:
Type Description
Array.<Array.<float>> The substracted points

staticDuAEExpression.Library."translatePointWithLayer"(l, point, startT, endT){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24519
Translates a point with a layer, as if it was parented to it.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer The layer to get the translation from.
point Array.<float> [0,0] optional The [X,Y] point to translate (using world coordinates).
startT float 0 optional The start time of the translation
endT float time optional The end time of the translation
Returns:
Type Description
Array.<float> The coordinates of the translated point.

staticDuAEExpression.Library."zero"(){any}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23877
Generates a "zero" value for the current property, i.e. 0 or [0,0], etc. according to the property type.
Note that for path properties, this method returns a path object with three array attributes: points, inTangents, outTangents.
Returns:
Type Description
any The zero value.

staticDuAEExpression.Library.get(functions){string}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 21886
Gets functions and their dependencies from the library.
Name Type Description
functions Array.<string> The name of the functions to get
Returns:
Type Description
string The expression

staticDuAEExpression.Library.getRequirements(functionName){Array.<string>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 21917
A recursive method to get all the requirements (dependencies) of a function from a library
Name Type Description
functionName string The name of the function
Returns:
Type Description
Array.<string> The names of the required functions, including the querried one

DuAEExpression. Library

Expression Library
Using DuAEF, you can easily include the methods and classes listed here to your expressions,
using DuAEExpression.Library.get and DuAEExpression.Library.getRequirements. These methods take the name of the function/class as arguments.

Classes

"FuzzyLogic"
"FuzzyVeracity"
"Matrix"

Members

staticDuAEExpression.Library."limit"

Clamps a value, but with a smooth interpolation according to a softness parameter

Methods

staticDuAEExpression.Library."addNoise"(val, quantity)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23924
Adds some noise to a value.
You may use seedRandom() before using this function as it will influence the generated noise. A timeless noise can be achieved with seedRandom(index,true) for example.
Name Type Description
val number | Array.<number> The value to add noise to.
quantity float The quantity of noise. A percentage. 100 means the value can range from (val * 0) to (val * 2).
Examples
seedRandom(index, true) // a timeless noise
addNoise(value, 50 ); // the property value will have noise between (value * 0.5) and (value * 1.5) which won't vary through time.
seedRandom(index, false);
addNoise(value, 33 ); // the noise will change at each frame, varying between (value * .66) and (value * 1.33)

staticDuAEExpression.Library."addPath"(path1, path2, path2weight){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23536
Adds two paths together.
The paths must be objects with three array attributes: points, inTangents, outTangents
Name Type Description
path1 Object First path
path2 Object Second path
path2weight float A weight to multiply the second path values
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."addPoints"(p1, p2, w){Array.<Array.<float>>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23254
Adds two lists of points/vectors.
Name Type Description
p1 Array.<Array.<float>> The list of points
p2 Array.<Array.<float>> The other list of points
w float A weight to multiply the values of p2
Returns:
Type Description
Array.<Array.<float>> The added points

staticDuAEExpression.Library."animate"(keyframes, loopOut, loopIn, time){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22478
Animates the property using the given keyframes
Name Type Default Description
keyframes Array.<Object> The keyframes. An object with four properties:
value The value of the keyframe
time The time of the keyframe
interpolation (optional. Default: linear) A function taking 5 arguments to interpolate between this keyframe and the next one
params (optional.) A sixth argument passed to the interpolation function. To be used with DuAEF interpolations.
Note that the keyframes must be sorted. The function does not sort them, as it would have a bad impact on performance.
loopOut string 'none' optional One of 'none', 'cycle', 'pingpong'.
loopIn string 'none' optional One of 'none', 'cycle', 'pingpong'.
time float time optional Use this to control how time flows.
Returns:
Type Description
number the animated value.
Example
var keyframes = [
   {value: 0, time: 1, interpolation: linear},
   {value: 180, time: 2, interpolation: gaussianInterpolation, params: -0.5}, //You need to include the gaussianInterpolation function from DuAEF
   {value: 250, time: 4, interpolation: ease},
   {value: 360, time: 5},
];
animate(keyframes, 'cycle', 'pingpong');

staticDuAEExpression.Library."bezierInterpolation"(t, tMin, tMax, value1, value2, bezierPoints){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22539
Interpolates a value with a bezier curve.
This method can replace linear() and ease() with a custom bézier interpolation.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
bezierPoints Array.<number> [0.33,0.0,0.66,1.0] optional an Array of 4 coordinates wihtin the [0.0, 1.0] range which describes the Bézier interpolation. The default mimics the native ease() function
[ outTangentX, outTangentY, inTangentX, inTangentY ]
Returns:
Type Description
number the value.

staticDuAEExpression.Library."bounce"(t, elasticity, damping, vAtTime){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22952
Bounce, to be used when the speed is 0.
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
elasticity float The elasticity, which controls the amplitude and frequence according to the last known velocity
damping float Damping
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."checkDuikEffect"(fx, duikMatchName){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23609
Checks the type of a pseudo-effect used by Duik.
This is a workaround for the missing matchName in expressions.
Pseudo-Effects used by Duik start with a hidden property which name is the same as the matchName of the effect itself (without the 'Pseudo/' part).
Name Type Description
fx Property The effect to check
duikMatchName string The matchName of a pseudo-effect used by Duik (without the 'Pseudo/' part)
Returns:
Type Description
boolean True when the property at propIndex is named propName
Example
if ( checkEffect(thisLayer.effect(1), "DUIK parentConstraint2") ) { "This is the second version of the parent constraint by Duik" }
else { "Who knows what this is?" }

staticDuAEExpression.Library."checkEffect"(fx, propIndex, propName){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23632
Checks the type of an effect.
This is a workaround for the missing matchName in expressions.
It checks if the given effect has a specific property at a specific index.
Name Type Description
fx Property The effect to check
propIndex int The index of the property
propName string The expected name of the property. Be careful with the internationalization of After Effects...
Returns:
Type Description
boolean True when the property at propIndex is named propName
Example
if ( checkEffect(thisLayer.effect(1), 1, "Blur") ) { "The first effect is a blur!" }
else { "Who knows what this is?" }

staticDuAEExpression.Library."continueIn"(t, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23015
Animatable equivalent to loopIn('continue').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all previous frames.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."continueOut"(t, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23036
Animatable equivalent to loopOut('continue').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."cycleIn"(t, nK, o, vAtTime, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23060
Animatable equivalent to loopIn('cycle') and loopIn('offset').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all previous frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
o Boolean Wether to offset or cycle
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."cycleOut"(t, nK, o, vAtTime, damping){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23100
Animatable equivalent to loopOut('cycle') and loopOut('offset').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
o Boolean Wether to offset or cycle
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."dishineritRotation"(l){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23951
Removes the ancestors rotation from the rotation of a layer. This is very useful to make a layer keep its orientation without being influenced by its parents.
Name Type Default Description
l Layer thisLayer optional The layer
Returns:
Type Description
float The new rotation value, in degrees.
Examples
//in a rotation property, just include the function and use:
dishineritRotation();
//the layer will now keep its own orientation.
//you can also combine the result with something else
var result = dishineritRotation();
result + wiggle(5,20);

staticDuAEExpression.Library."dishineritScale"(l){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23982
Removes the ancestors scale from the scale of a layer. This is very useful to make a layer keep its scale without being influenced by its parents.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<float> The new scale value, in percent.
Examples
//in a rotation property, just include the function and use:
dishineritScale();
//the layer will now keep its own scale.
//you can also combine the result with something else
var result = dishineritScale();
result + wiggle(5,20);

staticDuAEExpression.Library."expInterpolation"(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22586
Interpolates a value with an exponential function.
This method can replace linear() and ease() with a gaussian interpolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."fromGroupToLayer"(point){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24013
Converts the point coordinates from the current group in the shape layer to the Layer.
Use toWorld and toComp with the result if you need te coordinates in the world or the comp.
Name Type Description
point Array.<number> The 2D coordinates of the point in the current group.
Returns:
Type Description
Array.<number> The 2D coordinates of the point in the Layer.

staticDuAEExpression.Library."fromLayerToGroup"(point){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24030
Converts the point coordinates from Layer to the current group in the shape layer.
Use fromWorld or fromComp first if you need to convert from the world or composition coordinates, and pass the result to this function.
Name Type Description
point Array.<number> The 2D coordinates of the point in the Layer.
Returns:
Type Description
Array.<number> The 2D coordinates of the point in the current group.

staticDuAEExpression.Library."gaussian"(value, min, max, center, fwhm){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23303
The gaussian function
Name Type Default Description
value Number The variable
min Number 0 optional The minimum return value
max Number 1 optional The maximum return value
center Number 0 optional The center of the peak
fwhm Number 1 optional The full width at half maximum of the curve
Returns:
Type Description
Number The result

staticDuAEExpression.Library."gaussianInterpolation"(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22617
Interpolates a value with a gaussian function.
This method can replace linear() and ease() with a gaussian interpolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 0 optional The raising speed in the range [-1.0, 1.0].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."gaussianRateToBezierPoints"(rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22655
Converts a Gaussian rate (as used with gaussianInterpolation) to the closest possible Bézier controls for use with bezierInterpolation.
Name Type Description
rate number The raising speed in the range [-1.0, 1.0].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."getCompScale"(l, t){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24046
Gets the "real" scale of a layer, resulting to its scale property, the scale of its parents, and it's location in Z-space if it's 3D.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer thisLayer optional The layer
t number time optional The time when to get the scale
Returns:
Type Description
number The scale ratio. This is not a percent, 1.0 is 100%.

staticDuAEExpression.Library."getEffectLayer"(fx, ind){Layer|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23654
Gets a layer from a layer property in an effect, without generating an error if "None" is selected with the Legacy expression engine.
Name Type Description
fx Property The effect
ind int | string The index or the name of the property
Returns:
Type Description
Layer | null The layer, or null if set to "None"

staticDuAEExpression.Library."getGroupTransformMatrix"(prop){Matrix}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24066
Gets the transformation Matrix for the current group in a shape layer, including the transformation from the ancestor groups
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
prop Property thisProperty optional The property from which to get the matrix
Returns:
Type Description
Matrix The 2D Transform Matrix.

staticDuAEExpression.Library."getLayerCompPos"(t, l){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24099
Gets the comp position (2D Projection in the comp) of a layer.
Name Type Default Description
t number time optional Time from when to get the position
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<number> The comp position

staticDuAEExpression.Library."getLayerDistance"(other, origin, t){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24119
Gets the world position of a layer.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
other Layer The other layer
origin Layer thisLayer optional The origin
t number time optional Time from when to get the position
Returns:
Type Description
Array.<number> The world position

staticDuAEExpression.Library."getLayerWorldPos"(t, l){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24137
Gets the world position of a layer.
Name Type Default Description
t number time optional Time from when to get the position
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<number> The world position

staticDuAEExpression.Library."getLayerWorldSpeed"(t, l){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24155
Gets the world instant speed of a layer.
Name Type Default Description
t number time optional The time when to get the velocity
l Layer thisLayer optional The layer
Returns:
Type Description
number A positive number. The speed.

staticDuAEExpression.Library."getLayerWorldVelocity"(t, l){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24171
Gets the world instant velocity of a layer.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number time optional The time when to get the velocity
l Layer thisLayer optional The layer
Returns:
Type Description
Array.<number> The velocity.

staticDuAEExpression.Library."getNextKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22823
Gets the key immediately before the given time
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getNextStopKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22845
Gets the next key where there is no motion after it
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getOrientation"(l){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24185
Gets the world orientation of a (2D) layer.
Name Type Description
l Layer The layer to get the orientation from
Returns:
Type Description
float The orientation, in degrees.

staticDuAEExpression.Library."getOrientationAtTime"(l, t){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24231
Gets the world orientation of a (2D) layer at a specific time.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer The layer to get the orientation from
t float time optional The time at which to get the orientation
Returns:
Type Description
float The orientation, in degrees.

staticDuAEExpression.Library."getPath"(){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23667
Gets the path from the current property at a given time.
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."getPrevKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22868
Gets the key immediately before the given time
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getPrevStartKey"(t, prop){Key|null}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22890
Gets the previous key where there is no motion before it
Name Type Default Description
t number time optional Time at which to get the key
prop Property thisProperty optional The property from which to get the key
Returns:
Type Description
Key | null The key, or null if there's no key before.

staticDuAEExpression.Library."getPropFromPath"(l, p){Property}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23685
Gets a property from an array of indices as returned by getPropPath.
Name Type Description
l Layer The layer containing the needed property
p Array.<int> The indices to the property.
Returns:
Type Description
Property The property.

staticDuAEExpression.Library."getPropPath"(){Array.<int>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23701
Gets an array of all indices needed to get the current property from the layer level.
Returns:
Type Description
Array.<int> All indices to the property.

staticDuAEExpression.Library."getPropWorldSpeed"(t, prop){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24252
Gets the world speed of a property.
Name Type Default Description
t number time optional Time from when to get the position
prop Layer thisProperty optional The property
Returns:
Type Description
Array.<number> The world speed

staticDuAEExpression.Library."getPropWorldValue"(t, prop){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24268
Gets the world coordinates of a property.
Name Type Default Description
t number time optional Time from when to get the position
prop Layer thisProperty optional The property
Returns:
Type Description
Array.<number> The world coordinates

staticDuAEExpression.Library."getPropWorldVelocity"(t, prop){Array.<number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24287
Gets the world velocity of a property.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number time optional Time from when to get the position
prop Layer thisProperty optional The property
Returns:
Type Description
Array.<number> The world velocity

staticDuAEExpression.Library."getSameProp"(l){Property}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23728
Gets the same property as the current one but from another layer.
Name Type Description
l Layer The layer containing the needed property
Returns:
Type Description
Property The property.

staticDuAEExpression.Library."getScale"(l){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24300
Gets the world scale of a layer.
Name Type Description
l Layer The layer to get the scale from
Returns:
Type Description
Array.<float> The scale, in percent.

staticDuAEExpression.Library."inverseGaussian"(v, min, max, center, fwhm){Array.<Number>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23331
The inverse gaussian function
Name Type Default Description
v Number The variable
min Number 0 optional The minimum return value of the corresponding gaussian function
max Number 1 optional The maximum return value of the corresponding gaussian function
center Number 0 optional The center of the peak of the corresponding gaussian function
fwhm Number 1 optional The full width at half maximum of the curve of the corresponding gaussian function
Returns:
Type Description
Array.<Number> The two possible results, the lower is the first in the list. If both are the same, it is the maximum

staticDuAEExpression.Library."inverseLogistic"(v, midValue, min, max, rate){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23360
The inverse logistic function (inverse sigmoid)
Name Type Default Description
v Number The variable
midValue Number 0 optional The midpoint value, at which the function returns max/2 in the original logistic function
min Number 0 optional The minimum return value of the original logistic function
max Number 1 optional The maximum return value of the original logistic function
rate Number 1 optional The logistic growth rate or steepness of the original logistic function
Returns:
Type Description
Number The result

staticDuAEExpression.Library."isAfterLastKey"(){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22911
Checks if current time is after the time of the last key in the property
Returns:
Type Description
boolean true if time is > lastkey.time

staticDuAEExpression.Library."isKeyTop"(k, axis){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22927
Checks if the key is a maximum or minimum
Name Type Description
k Keyframe The key to check
axis int The axis to check for multi-dimensionnal properties
Returns:
Type Description
boolean true if the key is a maximum or minimum

staticDuAEExpression.Library."isLayer"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23742
Checks if a property is a layer. Useful when traversing up the property tree to stop when getting the layer.
Name Type Description
prop Property The property to test
Returns:
Type Description
boolean true if the prop is a layer

staticDuAEExpression.Library."isPath"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23756
Checks if a property is a path property.
Name Type Description
prop Property The property
Returns:
Type Description
boolean true if the property is a path property.

staticDuAEExpression.Library."isPosition"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23775
Checks if a property is a transform.position property.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
prop Property thisProperty optional The property
Returns:
Type Description
boolean true if the property is the transform.position property.

staticDuAEExpression.Library."isSpatial"(prop){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23788
Checks if a property is spatial
Name Type Default Description
prop Property thisProperty optional The property to check
Returns:
Type Description
boolean true if the property is spatial.

staticDuAEExpression.Library."isStill"(t, threshold, axis){boolean}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23807
Checks if the current property is animated at a given time.
Name Type Default Description
t number time optional The time
threshold number 0.01 optional The speed under which the property is considered still.
axis number -1 optional The axis to check. If < 0, will check all axis.
Returns:
Type Description
boolean true if the property does not vary.

staticDuAEExpression.Library."lastActiveTime"(prop, t){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23832
Checks the last previous time at which the property value was not 0. (meant to be used on boolean property, works on single dimension properties too).
Name Type Description
prop Property The property to check
t float The time before which to run the check
Returns:
Type Description
float The last active time before t

staticDuAEExpression.Library."linearExtrapolation"(t, tMin, tMax, value1, value2){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22741
Interpolates a value with a linear function, but also extrapolates it outside of known values.
This method can replace linear(), adding extrapolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate and extrapolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
Returns:
Type Description
number the value.

staticDuAEExpression.Library."logInterpolation"(t, tMin, tMax, value1, value2, rate){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22764
Interpolates a value with a logarithmic function.
This method can replace linear() and ease() with a gaussian interpolation.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
Returns:
Type Description
number the value.

staticDuAEExpression.Library."logistic"(value, midValue, min, max, rate){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23406
The logistic function (sigmoid)
Name Type Default Description
value Number The value
midValue Number 0 optional The midpoint value, at which the function returns max/2
min Number 0 optional The minimum return value
max Number 1 optional The maximum return value
rate Number 1 optional The logistic growth rate or steepness of the function
Returns:
Type Description
Number The result in the range [min, max] (excluding min and max)

staticDuAEExpression.Library."logisticInterpolation"(t, tMin, tMax, value1, value2, rate, tMid){number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 22798
Interpolates a value with a logistic (sigmoid) function.
This method can replace linear() and ease() with a gaussian interpolation.
Name Type Default Description
t number The value to interpolate
tMin number 0 optional The minimum value of the initial range
tMax number 1 optional The maximum value of the initial range
value1 number 0 optional The minimum value of the interpolated result
value2 number 1 optional The maximum value of the interpolated result
rate number 1 optional The raising speed in the range [0, inf].
tMid number optional The t value at which the interpolated value should be half way. By default, (tMin+tMax)/2
Returns:
Type Description
number the value.s

staticDuAEExpression.Library."mean"(values){Number}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23426
Returns the mean of a set of values
Name Type Description
values Array.<Number> The values
Returns:
Type Description
Number The mean

staticDuAEExpression.Library."multPath"(path, weight){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23559
Multiplies a path with a scalar.
The path must be an object with three array attributes: points, inTangents, outTangents
Name Type Description
path Object The path
weight float The multipliers
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."multPoints"(p, w){Array.<Array.<float>>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23447
Multiplies a list of points/vectors with a scalar.
Name Type Description
p Array.<Array.<float>> The list of points
w float The multiplier
Returns:
Type Description
Array.<Array.<float>> The multiplied points

staticDuAEExpression.Library."nextActiveTime"(prop, t){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23855
Checks the next time at which the property value was not 0. (meant to be used on boolean property, works on single dimension properties too).
Name Type Description
prop Property The property to check
t float The time after which to run the check
Returns:
Type Description
float The next active time after t

staticDuAEExpression.Library."normalizeWeights"(weights, sum){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23465
Normalizes a list of weights so their sum equals 1.0
Name Type Description
weights Array.<float> The weights to normalize
sum float optional The sum of the weights; provide it if it's already computed to improve performance.
Returns:
Type Description
Array.<float> The normalized weights

staticDuAEExpression.Library."overshoot"(t, elasticity, damping, vAtTime){float|Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23139
Overshoot animation, to be used when the speed is 0.
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
elasticity float The elasticity, which controls the amplitude and frequence according to the last known velocity
damping float Damping
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
Returns:
Type Description
float | Array.<float> The new value

staticDuAEExpression.Library."pingPongIn"(t, nK, vAtTime, damping){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23175
Animatable equivalent to loopIn('pingpong').
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all previous frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float The new value

staticDuAEExpression.Library."pingPongOut"(t, nK, vAtTime, damping){float}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23216
Animatable equivalent to loopOut('pingpong'). Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
t float The time at which the value must be got. To end the loop, pass the same time for all subsequent frames.
nK int The number of keyframes to loop. Use 0 to loop all keyframes
vAtTime function valueAtTime optional A function to replace valueAtTime. Use this to loop after an expression+keyframe controlled animation, by providing a function used to generate the animation.
damping float 0 optional Exponentially attenuates the effect over time
Returns:
Type Description
float The new value

staticDuAEExpression.Library."subPath"(path1, path2, path2weight){Object}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23583
Substracts two paths together.
The paths must be objects with three array attributes: points, inTangents, outTangents
Name Type Description
path1 Object First path
path2 Object Second path
path2weight float A weight to multiply the second path values
Returns:
Type Description
Object A path object with three array attributes: points, inTangents, outTangents

staticDuAEExpression.Library."subPoints"(p1, p2, w){Array.<Array.<float>>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23505
Substracts two lists of points/vectors.
Name Type Description
p1 Array.<Array.<float>> The list of points
p2 Array.<Array.<float>> The other list of points
w float A weight to multiply the values of p2
Returns:
Type Description
Array.<Array.<float>> The substracted points

staticDuAEExpression.Library."translatePointWithLayer"(l, point, startT, endT){Array.<float>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 24519
Translates a point with a layer, as if it was parented to it.
Note that for performance reasons with expressions, even if the parameters of the function are documented with optional/default values, you MUST provide ALL the arguments when using them.
Name Type Default Description
l Layer The layer to get the translation from.
point Array.<float> [0,0] optional The [X,Y] point to translate (using world coordinates).
startT float 0 optional The start time of the translation
endT float time optional The end time of the translation
Returns:
Type Description
Array.<float> The coordinates of the translated point.

staticDuAEExpression.Library."zero"(){any}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 23877
Generates a "zero" value for the current property, i.e. 0 or [0,0], etc. according to the property type.
Note that for path properties, this method returns a path object with three array attributes: points, inTangents, outTangents.
Returns:
Type Description
any The zero value.

staticDuAEExpression.Library.get(functions){string}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 21886
Gets functions and their dependencies from the library.
Name Type Description
functions Array.<string> The name of the functions to get
Returns:
Type Description
string The expression

staticDuAEExpression.Library.getRequirements(functionName){Array.<string>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 21917
A recursive method to get all the requirements (dependencies) of a function from a library
Name Type Description
functionName string The name of the function
Returns:
Type Description
Array.<string> The names of the required functions, including the querried one