Animate
Animate values and geometry over frames
Animate Action
A 0..1 Value that rises from Start over Length, for timing one step of an animation. Time picks the clock: the scene’s Seconds or Frames, or any linked Value. Turn on Stagger::Boolean to offset each ID::Integer as in Stagger Value, and pick an Interpolation and Ease to shape the transition as in Ease Value. Active::Boolean is true while the time is between Start and End, which is Start plus Length.
Inputs
| Name | Type | Description |
|---|---|---|
| Start | Float |
|
| Length | Float |
|
| Time | Menu |
Which source to use as time for animating the action |
| Value | Float |
Becomes the output value if it is chosen by the menu input |
| Stagger | Bool |
|
| Width | Float |
How many IDs are staggered at the same time during the animation. |
| ID | Int |
The ID over which we stagger the animation. |
| Group ID | Int |
Compute the staggered animation individually for each Group ID |
| Interpolation | Menu |
Shape of the easing curve, following Robert Penner’s easing functions (easings.net) |
| Ease | Menu |
Apply the curve at the start (In), the end (Out) or both ends (In Out) of the transition |
| Overshoot | Float |
How far the Back curve overshoots before settling |
| Period | Float |
Period of the Elastic oscillation as a fraction of the transition |
| Amplitude | Float |
Amplitude of the Elastic oscillation. Values below 1 behave as 1 |
Outputs
| Name | Type | Description |
|---|---|---|
| Value | Float |
|
| Active | Bool |
Whether the input Value is between (and including) the lower and upper bounds |
| End | Float |
API Reference: nodes.geometry.AnimateAction
Animate Frames
Animate the atoms of a structure, based on the frames of a trajectory from the Frames collection in the input. The structure animates through the trajectory from the given start frame to the given end frame, as the Animate 0..1 value moves from 0 to 1. Values higher than 1 start at the beginning again and the trajectory will loop repeating every 1.00. Position and b_factor are interpolated if available. By default linear interpolation is used. Smoothing in and out of each frame can be applied with the Smoother Step, or no interpolation at all.
Inputs
| Name | Type | Description |
|---|---|---|
| Atoms | Geometry |
Atomic geometry that contains vertices and edges |
| Selection | Bool |
Selection of atoms to apply this node to |
| Frames | Collection |
Collection which holds the frames of the trajectory |
| Smoother Step | Bool |
Ease in and out of the individual frames if interpolating |
| Interpolate | Bool |
Whether to interpolate between frames of a trajectory or snap |
| Frame | Float |
Which frame to select from the collection. The fraction component of the float is how much to interpolate between the current and next frame |
Outputs
| Name | Type | Description |
|---|---|---|
| Atoms | Geometry |
Atomic geometry with new positions based on the trajectory |
| All Frames | Geometry |
Each frame from the collection of coordinates is output in the a single mesh. They now contain an additional attribute frame_id to specify which structure they are from |
API Reference: nodes.geometry.AnimateFrames
Animate Peptide to Curve
Take the protein residues from a structure and align then along an input curve. Editing the curve will change how the atoms are arranged. The output atoms can be styled as normal.
Inputs
| Name | Type | Description |
|---|---|---|
| Atoms | Geometry |
Atomic geometry that contains vertices and edges |
| Curve | Geometry |
|
| Offset | Float |
|
| Start | Float |
|
| End | Float |
|
| Rotate | Float |
|
| Twist | Float |
Outputs
| Name | Type | Description |
|---|---|---|
| Atoms | Geometry |
API Reference: nodes.geometry.AnimatePeptideToCurve
Animate Trails
Add trails to the atoms as they are animated, which trail the specified number of frames behind the atoms
Inputs
| Name | Type | Description |
|---|---|---|
| Atoms | Geometry |
Atomic geometry that contains vertices and edges |
| Selection | Bool |
Selection of atoms to apply this node to |
| Trail Threshold | Menu |
|
| Trail Curve Type | Menu |
|
| Trail Frames | Int |
Number of previous frames from the trajectory to display |
| Trail Radius | Float |
|
| Trail Resolution | Int |
Tail radial resolution |
| Trail Subdivisions | Int |
|
| Trail Cutoff | Float |
Threshold over which the spline is broken up |
| Shade Smooth | Bool |
Apply smooth shading to the created geometry |
| Material | Material |
Material to apply to the resulting geometry |
Outputs
| Name | Type | Description |
|---|---|---|
| Geometry | Geometry |
API Reference: nodes.geometry.AnimateTrails
Animate Value
Animate a float value between the specified min and max values, over specified range of frames. If clamped, frames above and below the start and end will result in the min and max output values, otherwise it will continue to linearly interpolate the value beyond the min and max values.
Inputs
| Name | Type | Description |
|---|---|---|
| Smoother Step | Bool |
Ease out and in from the min and max values |
| Clamped | Bool |
Whether to clamp the interpolated value to the max |
| Frame Start | Int |
Frame to start the animation on |
| Frame End | Int |
Frame to finish the animation on |
| Value Min | Float |
Value to start animation from |
| Value Max | Float |
Value to end animation at |
Outputs
| Name | Type | Description |
|---|---|---|
| Value | Float |
Animated value that interpolates from min to max over frames |
API Reference: nodes.geometry.AnimateValue
Animate Wiggle
Create a procedural animation of side-chain movement. ‘Wiggles’ the side-chains of peptide amino acids based on the b_factor attribute. Wiggle is currently only supported for protein side-chains and does not check for steric clashing so higher amplitudes will result in strange results. The animation should seamlessly loop every 1.00 of the Animate 0..1 input.
Inputs
| Name | Type | Description |
|---|---|---|
| Atoms | Geometry |
Atomic geometry that contains vertices and edges |
| Selection | Bool |
Selection of atoms to apply this node to |
| b_factor | Float |
Amount that b_factor changeds the amplitude of wiggling |
| Amplitude | Float |
Overall amplitude of the wiggling |
| Amp. Axis | Float |
Aplitude for the rotation around the bond axes |
| Amp. Euler | Float |
Amplitude for applying euler rotations separate to the axis |
| Speed | Float |
Speed at which the wiggle is applied, 3 will repeat 3 times |
| Animate | Float |
Controls the animation of the wiggle, repeating every 1.00 |
Outputs
| Name | Type | Description |
|---|---|---|
| Atoms | Geometry |
The animated atomic geometry |
API Reference: nodes.geometry.AnimateWiggle
Decay
The share of the remaining gap to close in a step of Delta Time seconds, 1 - 2^(-dt / Half Life), so that easing by it halves the gap every Half Life seconds at any frame rate
Inputs
| Name | Type | Description |
|---|---|---|
| Delta Time | Float |
|
| Half Life | Float |
Seconds for the remaining gap to the best view to halve |
Outputs
| Name | Type | Description |
|---|---|---|
| Decay | Float |
API Reference: nodes.geometry.Decay
Ease Value
Reshape a linear Value between 0 and 1 with one of Robert Penner’s easing curves (Linear, Sinusoidal, Quadratic, Cubic, Quartic, Quintic, Exponential, Circular, Back, Bounce or Elastic, as listed on easings.net) applied at the start (In), the end (Out) or both ends (In Out) of the transition, then map the result to From..To. Works per point, so it can ease a field as well as a single value. Chain it after Animate Value or Stagger Value, or set the same menus on Animate Action. Overshoot shapes Back, and Period and Amplitude shape Elastic. With Clamp::Boolean off the curve is evaluated outside 0..1 and the output can leave the From..To range.
Inputs
| Name | Type | Description |
|---|---|---|
| Value | Float |
Linear progress to ease, from 0 to 1. Link Animate Value or Stagger Value to animate it |
| Interpolation | Menu |
Shape of the easing curve, following Robert Penner’s easing functions (easings.net) |
| Ease | Menu |
Apply the curve at the start (In), the end (Out) or both ends (In Out) of the transition |
| Clamp | Bool |
Clamp the input value to 0..1 before easing so the output never leaves the From..To range |
| From | Float |
Output value when the input is 0 |
| To | Float |
Output value when the input is 1 |
| Overshoot | Float |
How far the Back curve overshoots before settling |
| Period | Float |
Period of the Elastic oscillation as a fraction of the transition |
| Amplitude | Float |
Amplitude of the Elastic oscillation. Values below 1 behave as 1 |
Outputs
| Name | Type | Description |
|---|---|---|
| Value | Float |
Eased value between From and To |
API Reference: nodes.geometry.EaseValue
Stagger Value
Spread a 0..1 Value across points so that each ID::Integer makes its own 0..1 transition, starting later than the ID before it. Every ID takes the same share of the input range, so all IDs move at the same speed. Width sets how many IDs are moving at once: small widths animate one ID after another, and larger widths overlap them more. A Width of 0 switches each ID straight from 0 to 1. ID defaults to the id attribute, or the index if there is none; link URes ID to stagger by residue. Group ID::Integer staggers each group over its own range of IDs. Chain it into Ease Value to ease each ID’s transition.
Inputs
| Name | Type | Description |
|---|---|---|
| Value | Float |
Animated value that interpolates from min to max over frames |
| Width | Float |
How many IDs are staggered at the same time during the animation. |
| ID | Int |
The ID over which we stagger the animation. |
| Group ID | Int |
Compute the staggered animation individually for each Group ID |
Outputs
| Name | Type | Description |
|---|---|---|
| Value | Float |
API Reference: nodes.geometry.StaggerValue