Skip to main content
Participant
Oct 4, 2024 11:01 PM UTC
Answered

after effects randomize time remap with expression

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 is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Oct 5, 2024 12:38 AM UTC

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;

2 replies

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Oct 5, 2024 12:38 AM UTC

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;
Translate
Participant
Oct 5, 2024 12:51 PM UTC

works flawlessly. thanks a lot

Translate