Forum Replies Created

Page 3 of 4
  • Rafael Braz

    November 7, 2014 at 3:30 pm in reply to: Random time remap

    Damn… I appreciate your help a LOT anyway, dude, you’re awesome.

    I’ll try to explain again in case of someone else shows up…

    The idea is to be able to control the time remap randomness as an effect, turning it on and off whenever I need.

    So it would begin with a specific still frame, then I would turn the ‘effect’ on to make it begins to change the frames randomly and then turn it off back to the specific still frame.

    I think it would be better with expressions because otherwise I’ll have to make 3 layers, the first with the specific still frame, the second with expression changing the frames randomly, and then a third layer with the specific still frame.

  • Rafael Braz

    November 6, 2014 at 10:17 pm in reply to: Random time remap

    Damn, sorry for that.

    Now it’s working, with the sliders on!

    I set them to 0/0 and when I want it to start, I keyframe it to 1/3.

    But it’s not looping the frames, it just plays once.

    Just to summarize it, I’d like to control in keyframes the start and stop points to the frames begin to change randomly in loop mode and then stop whenever I want.

  • Rafael Braz

    November 6, 2014 at 9:34 pm in reply to: Random time remap

    Yea, the ideia is to be able to control the time remaping expression starts and stops.

    I tried to isolate the layer in a new comp to make tests and now when I use this expression, I get an error message:

    Error at line 3 in property ‘Time remap’ of layer 1 (‘C 2’) in comp ‘teste’.
    Expected: ).

    tStart = 1;
    tStop = 3;
    if (time > tStart && time < tStop){
    t = time - tStart;
    frameDur = 15;
    f = timeToFrames(t);
    seg = Math.floor(f/frameDur);
    seedRandom(seg+1113,true);
    rf = Math.floor(random(3));
    framesToTime(rf)
    }else 0

  • Rafael Braz

    November 6, 2014 at 9:09 pm in reply to: Random time remap

    When I’m using this expression linked to sliders, nothing happens, even when I set them to 1 and 3, like you said… 🙁

    tStart = effect("Slider Control")("Slider");
    tStop = effect("Slider Control 2")("Slider");
    if (time > tStart && time < tStop){
    t = time - tStart;
    frameDur = 15;
    f = timeToFrames(t);
    seg = Math.floor(f/frameDur);
    seedRandom(seg+1113,true);
    rf = Math.floor(random(3));
    framesToTime(rf)
    }else 0

  • Rafael Braz

    November 6, 2014 at 8:56 pm in reply to: Random time remap

    When I paste this code on time remap, it works just as I want it.
    But what I’d like to do is to control when this expression starts and ends, otherwise I’ll have to split all layers in order to control it.
    I’m sorry if I wasn’t clear.
    Thanks a lot for your support, though.

    tStart = 1;
    tStop = 3;
    if (time > tStart && time < tStop){
    t = time - tStart;
    frameDur = 15;
    f = timeToFrames(t);
    seg = Math.floor(f/frameDur);
    seedRandom(seg+1113,true);
    rf = Math.floor(random(3));
    framesToTime(rf)
    }else 0

  • Rafael Braz

    November 6, 2014 at 8:01 pm in reply to: Random time remap

    Yea, I tried 1, 3, or 0.01, 0.03, I dragged the slide all the way but nothing happened… :/

  • Rafael Braz

    November 5, 2014 at 9:03 pm in reply to: Random time remap

    Nothing happens 🙁

  • Rafael Braz

    November 5, 2014 at 8:40 pm in reply to: Random time remap

    Thanks a lot dude, I just had the opportunity to test it today.
    How do I exactly do it?
    I tried to paste the expression on both Slider and Time Remap, but I’m confused on how to relate them.

  • Rafael Braz

    November 3, 2014 at 9:01 pm in reply to: Random time remap

    It works dude!!!! Thanks!!!!

    Would it be too much to ask you how to make a slider or something to turn it on and off? So I can choose when I want the randomness to start and end?

  • Rafael Braz

    November 3, 2014 at 8:28 pm in reply to: Random time remap

    Actually, this 3 years old expression I found works perfectly, but, I don’t know why, one of the frames is BLANK!
    Why’s that for god sake? :`(

    numFrames = 5;
    minDur = 15;
    maxDur = 30;

    f = timeToFrames();
    f0 = 0;
    seedRandom(index,true);
    while (f0 <= f){
    f0 += Math.floor(random(minDur,maxDur+1));
    }
    seedRandom(f0,true);
    framesToTime(Math.floor(random(numFrames)));

Page 3 of 4

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