Forum Replies Created

Page 4 of 6
  • Ido Shor

    September 11, 2016 at 7:09 am in reply to: time remapping with expression (?)

    🙂

    sure Dan,
    what I am aiming at here is building a graph that will step forward every 25f, getting it’s values (the Y value that is), from a slider which has a random expression to it:

    x = 25;
    f = thisComp.frameDuration * x;
    posterizeTime(1);
    Math.round(random(300,600))

    the object which generates the graph is an Emitter of Particles moving according to this expression.

    so, I need this expression to get the values generated from the random slider, and add an ease interpolation, between each value change over a period of 25f. but at the same time, it has to keep still for 25f before moving on to the next keyframe…. (remember the steps?…)

    that’s basically it.

    cheers,
    Ido.

  • Ido Shor

    September 10, 2016 at 8:32 pm in reply to: time remapping with expression (?)

    Ok, Here are my foundlings

    a graphical view of the behaviour of this expression:

    the white line is the random value of the slider (with a posterizeTime expression added to change the value only every nth frame).
    the green line represent the interpolation expression on the position.Y axis of the layer.

    correct me if I am wrong, but it seems that the expression is generating the interpolation between two keyframes over a period of 25f, and not every 25f.

    since the change is happening only every 25f, it needs to calculate it only between the 25th frame and the 26th frame and so on.

    how can we achieve that?

    cheers, Ido.

  • Ido Shor

    September 10, 2016 at 10:37 am in reply to: time remapping with expression (?)

    Thanks Dan,

    wiIll test that and come up with the results!

    I can think of a few ways this script could come in handy…

    cheers,
    Ido

  • Ido Shor

    September 7, 2016 at 2:15 pm in reply to: time remapping with expression (?)

    yes, that is the case.
    exactly.

  • Ido Shor

    September 7, 2016 at 10:47 am in reply to: time remapping with expression (?)

    yes, I actually didn’t write my post properly…. I DID used the “Ease function” in my equation.
    but it didn’t change or solve my issue.

    thanks anyhow Kalle.

  • Ido Shor

    September 5, 2016 at 3:46 pm in reply to: moving markers with an expression

    The main reason is that I if I build a Controller Layer/panel, which in I contain all the animation controls I need for a certain comp, then it’s comfortable (in my mind anyhow) if I would have also control over the timing of certain animation from the same panel.

    regarding what you said, I guess I can use a Checkbox which in the “On” phase is the beginning of the animation. At the same time I can also use a slider control to decide on the exact frame in which I want the animation to start.

    if you have a spare moment I will be happy if you could revise your code to achieve the same result but using a checkbox/slider instead.
    (I tried myself and failed…)

    cheers, Ido.

  • Ido Shor

    August 3, 2016 at 10:12 pm in reply to: change color according to value

    Hey Hammer, tnx, but it seems ur code is making the letters flash back and forth from one colour to the next.

    in the meantime, with the help of Xavier from Adobe forums we managed to achieve this code:

    ——————————————————————————————

    upColor = thisComp.layer(“Ctrl”).effect(“Up Color”)(“Color”);
    downColor = thisComp.layer(“Ctrl”).effect(“Down Color”)(“Color”);
    X = thisComp.layer(“Ctrl”).effect(“Slider Control”)(“Slider”);
    ta = time – thisComp.frameDuration;
    a = X.valueAtTime(ta);
    b = X.value;
    while (a===b && ta>=inPoint){
    b=a;
    ta -= thisComp.frameDuration;
    a = X.valueAtTime(ta);
    };
    if (b

  • Ido Shor

    August 3, 2016 at 10:58 am in reply to: change color according to value

    Ok…. I am probably way off here, because my knowledge in expression is almost limited to a Wiggle… 🙂

    but just to show you I am making an effort, and maybe sparkles an idea in one of your brilliant minds.. here goes a test I did:

    ————————————————————————————————————————————–

    upColor = thisComp.layer(“Ctrl”).effect(“Up Color”)(“Color”);
    downColor = thisComp.layer(“Ctrl”).effect(“Down Color”)(“Color”);
    value = thisComp.layer(“Ctrl”).effect(“Slider Control”)(“Slider”);
    prevframe = thisComp.layer(“Ctrl”).effect(“Slider Control”)(“Slider”).valueAtTime(time – thisComp.frameDuration);

    if(prevframe.valueAtTime < ((time * 25) % 2 == 0).valueAtTime))downColor else upColor;

    value;

    ————————————————————————————————————————————–

    And a screen capture of my comp attached.

    so… basically I am trying to get a value from a place that doesn’t has one… (linking the source of the text to a slider)

    any ideas how to solve this nut?

    tnxx, I.S

    10367_capture.jpg.zip

  • Ido Shor

    July 31, 2016 at 6:20 pm in reply to: Move layer x pixels every nn frames

    Tnx…. works like a charm. 🙂

  • Ido Shor

    July 31, 2016 at 2:10 pm in reply to: Move layer x pixels every nn frames

    it would be great if you can add a smooth interpolation between “keyframes” to this expression.

Page 4 of 6

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