Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects jumping to a random time at a certain time

  • jumping to a random time at a certain time

    Posted by Aronduby on August 14, 2006 at 10:49 am

    what I have is three instances of an image sequence on the timeline, each one masked to show a different third. I also have a mp3 with soundkeys ran on it which outputed on/off keyframes for a low, mid, and high range. What I want to have happen is when the low switch for soundkeys is on the left image sequence jumps (and perferably stays until the next on keyframe) to a random spot in the sequence, and the same for the other two. I want to avoid manually keyframing all the layers time remapping since this is suppose to be a learning experience and I already know how to do that, and of course that would be a pain.

    I started off trying time displacement, but couldn’t get that to work, and have been fooling around with expressions on the time remapping, but that didn’t get far at all. I’m fairly sure that what I want would have to be one of those two, or a combination of them, but it seems to be fairly over my head right now. Any ideas on what I should be doing?

    Aronduby replied 19 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Julian Sixx

    August 14, 2006 at 1:13 pm

    hi
    i’m not sure if i understood it correctly but here we go.

    I would put all three instances in a seperate layer.

    //expression for position
    driver=thisComp.layer(“sound key layer 1”).effect(“Sound Keys”)(“Output 1”);
    po=random([0,0],[thisComp.width,thisComp.height])
    if (driver>55 && driver<60) po else value
    //end of expression

    What does it do?
    if the Sound Keys-Output value is between 55+60,this expression will position the instance randomly within the comp!!
    i hope it helps

  • Aronduby

    August 17, 2006 at 4:35 am

    thats close, and I think with some tweaking I could get it to do what I’m thinking, but I’m not sure. I’m looking more for something that keeps the comp timeline the same while jumping to a random time in one of the layers.

    I think if I try putting that into the layer time-remapping it would work partially, but as soon as the conditional if isn’t meet won’t it jump back to its original place in time?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy