Jump to: Board index » General » Fusion

Random Frame Time Expression - Stop Motion

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message


  • Posts: 1
  • Joined: Sun Jun 26, 2022 10:22 am
  • Real Name: Claus Larsen

Random Frame Time Expression - Stop Motion

PostSun Jun 26, 2022 2:12 pm

Hi all.

I'm working in stop-motion and looking for an Expression.
I have been working in After Effects until now, but moving to DaVinci Resolve (LOVING it!).
What I am looking is an Expression that lets me play back a random frame from a video, sequence or Comp.
It is used to make drawings visually more interesting and give them a more natural feel, than a repetitive loop will.
So instead of playing back frame: 001, 002, 003....
It would play bach: 009, 025, 006, 012...
I hope I'm making sense. :?

This is what I would use in After Effects:
fr = 12; // frame rate;
numFrames = 8;
seg = Math.floor(time*fr);
f = Math.floor(random(numFrames));
for (i = 0; i < seg; i++)
f = (f + Math.floor(random(1,numFrames)))%numFrames;

Sander de Regt

  • Posts: 2660
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: Random Frame Time Expression - Stop Motion

PostMon Jun 27, 2022 6:29 am

Use a time stretcher and modify the source with a shake modifier with its min max values set to the range to choose from.
Sander de Regt

ShadowMaker SdR
The Netherlands

Return to Fusion

Who is online

Users browsing this forum: No registered users and 4 guests