-
Random time remap
Hi there, I’ve been looking for an expression to make this work but still couldn’t find any that suits my needs.
I have a 3 frames comp and I want the three frames to change randomly.
But the expressions I tried flickered a lot, and I’d like to make the frames still for at least 10-20 frames.When I try something like
It flicks like crazy and the weird is that one of the flickering frames is a blank one, I don’t get why that happens.
For an insight of the project, it’s a title made of magazine cut offs letters.
I have 3 cut offs for each letter. So I made a 3 frames comp for each letter intending to change it randomly with time remapping.
So the expression should change randomly between these 3 frames, holding each one for at least 10-20 frames.Could anybody help me out here? I know very little of expressions, so basically I tried a lot of copy and paste from old topics and google researches, none of it works… 🙁
Thanks!!
fr = 12; // frame rate;
numFrames = 8;
seedRandom(index,true);
seg = Math.floor(time*fr);
f = Math.floor(random(numFrames));
for (i = 0; i < seg; i++)
f = (f + Math.floor(random(1,numFrames)))%numFrames;
framesToTime(f);