demobook

After Effects: Using previousKey and nextKey expressions

Demo summary

Shows how to use the new 'previousKey' and 'nextKey' expressions to reference specific keyframe values based on time.

Step-by-step

  1. Select a layer property and add at least one keyframe
  2. Alt-click (or Option-click) the stopwatch icon to add an expression
  3. Type 'previousKey()' or 'nextKey()' into the expression field
  4. Enter a time value in seconds within the parentheses to reference a specific point in time

Options

  • Use 'previousKey' to find the value of the keyframe before a specific time
  • Use 'nextKey' to find the value of the keyframe after a specific time

Watch out for

  • The time value inside the parentheses must be measured in seconds
  • Applying this expression as a static value will override existing animation between keyframes

Tips

  • Use these expressions to measure specific keys and link them into more complex expression rigs

Highlights

that's the basics of how this expression works

All demos from “After Effects 26 Changes EVERYTHING

  1. 0:261:18Preserve Illustrator gradients in After EffectsThe video demonstrates how to convert Illustrator vector layers into After Effects shapes while preserving linear and radial gradients, including new controls for scaling and rotating gradients.After EffectsAI Motion Graphics
  2. 2:301:29Native SVG import and path regroupingShows how to drag an SVG file directly into After Effects to create shape layers and uses the 'Regrouper' script to organize messy vector paths.After EffectsAI Motion Graphics
  3. 6:522:05Remove backgrounds with native Unmult effectShows the new native Unmult effect in After Effects being used to remove black or white backgrounds from fire and ink footage while preserving color fidelity.After EffectsAI Video Editor
  4. 10:332:34Create 3D parametric meshesA walkthrough of the new 3D toolbar in After Effects, demonstrating how to create and adjust parametric cubes, spheres, toruses, and cones.After EffectsAI Motion Graphics
  5. 25:341:16Using previousKey and nextKey expressionsCurrentShows how to use the new 'previousKey' and 'nextKey' expressions to reference specific keyframe values based on time.After EffectsAI Motion Graphics
  6. Watch “After Effects 26 Changes EVERYTHING” →

AI Motion Graphics

  1. 0:261:18Preserve Illustrator gradients in After EffectsThe video demonstrates how to convert Illustrator vector layers into After Effects shapes while preserving linear and radial gradients, including new controls for scaling and rotating gradients.Jake In Motion
  2. 2:301:29Native SVG import and path regroupingShows how to drag an SVG file directly into After Effects to create shape layers and uses the 'Regrouper' script to organize messy vector paths.Jake In Motion
  3. 10:332:34Create 3D parametric meshesA walkthrough of the new 3D toolbar in After Effects, demonstrating how to create and adjust parametric cubes, spheres, toruses, and cones.Jake In Motion
  4. 25:341:16Using previousKey and nextKey expressionsCurrentShows how to use the new 'previousKey' and 'nextKey' expressions to reference specific keyframe values based on time.Jake In Motion
  5. 0:120:33Create repeated delayed animations in After EffectsThe creator demonstrates how to pre-compose layers, duplicate them with scale adjustments and fill effects, and offset keyframes to create a delayed repeating animation.SonduckFilm
  6. 0:540:46Stack motion graphics in 3D spaceA walkthrough of converting layers to 3D, setting up a camera with a 3D null parent, and adjusting Z-positions to create depth in a scene.SonduckFilm
  7. 6:310:52Build a 360-degree carousel animationThe creator demonstrates setting up a shape layer with a track matte, adjusting anchor points, and rotating duplicates to form a circular carousel controlled by a null object.SonduckFilm
  8. 7:290:57Animate scrolling text with Loop Out OffsetA demonstration of using guides for precision, parenting text to a null, and applying the 'loopOut("offset")' expression to create a continuous scrolling list.SonduckFilm
  9. 19:260:46Animating off-screen movementThe demo shows setting a landing keyframe and then dragging a text layer off-screen at the start of the timeline to create an entrance animation.Adobe Video
  10. 55:520:27Applying Easy Ease to keyframesThe instructor demonstrates selecting keyframes and using the Easy Ease (F9) command to smooth out the motion of an animation.Adobe Video
  11. 1:15:400:38Linking properties with Property Pick WhipThe instructor demonstrates using the property pick whip to link the rotation of multiple layers to a single master layer using expressions.Adobe Video
  12. 1:24:190:23Revealing paths with the Stroke effectThe video shows using the 'Stroke' effect set to 'Reveal Original Image' to animate a dotted line along a custom pen path.Adobe Video