Skip to main content
Participant
October 4, 2024
Answered

after effects randomize time remap with expression

  • October 4, 2024
  • 1 reply
  • 532 views

hi. so I wanna randomize time remap in after effects on a video layer of 25 seconds. so I used the expression "random(0,25)". it works but it goes too fast, it jumps on every single frame. So i want it to go slower, so i tried the expression "posterizeTime(1)". Now it jumps every one second, that's what I want. the problem is it gives me freezed frames / static images every 1 second. and what I want is for the video to continue playing including the jumps. can anyone tell me how to achieve that keeping it simple... maybe adding somthing else to the expression I dont know? thanks

This topic has been closed for replies.
Correct answer Dan Ebberts

Try this Time Remap expression:

dur = 1; // duration of each segment
seed = Math.floor(time/dur);
seedRandom(seed,true);
tStart = random(24);
tStart + time - seed*dur;

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
October 5, 2024

Try this Time Remap expression:

dur = 1; // duration of each segment
seed = Math.floor(time/dur);
seedRandom(seed,true);
tStart = random(24);
tStart + time - seed*dur;
Participant
October 5, 2024

works flawlessly. thanks a lot