Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Hello, I have a question about the keyframe expression

  • Hello, I have a question about the keyframe expression

    Posted by ‘SMR 겜댕 on February 10, 2021 at 1:39 pm

    First of all, I apologize in advance for my unskilled language.

    What I’m curious about is I added a checkbox to the keyframe to enable on/off

    but Here I would like to know an expression to add a slider to adjust the keyframe rate

    with a slider

    Below is the expression I wrote

    I want to know where it went wrong

    ———————————————-

    if(effect(“lightwhip”)(“check”)==true){

    time*thisComp.layer(“Effect”).effect(“slider control”)(“slider”)

    nearestKey(thisComp.duration)

    }

    else {

    value

    }

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

    ‘SMR 겜댕 replied 5 years, 6 months ago 2 Members · 4 Replies
  • 4 Replies
  • ‘SMR 겜댕

    February 10, 2021 at 2:43 pm

    +add

    Fortunately

    I found a way to adjust the speed at the keyframe,

    but

    I found a speed control on keyframes

    I don’t know how to add a check box expression here

    ———————————————————-

    spd =thisComp.layer(“Effect”).effect(“slider controll”)(“slider”);

    accum = 0;

    for (i = timeToFrames(inPoint); i <= timeToFrames(time); i++){

    accum += spd.valueAtTime(framesToTime(i));

    }

    value + accum*thisComp.frameDuration;

    ——————————————————————-

    Please let me know how to add the expression below here.

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

    if(effect(“checkbox control”)(“check”)==true)

  • Fabrice Leconte

    February 10, 2021 at 3:05 pm

    Place it where you need to use it

    Maybe here:

    spd = thisComp.layer('Effect').effect('slider controll')('slider');

    accum = 0;

    if (effect('checkbox control')('check')) {

    for (i = timeToFrames(inPoint); i <= timeToFrames(time); i++) {

    accum += spd.valueAtTime(framesToTime(i));

    }

    }

    value + accum * thisComp.frameDuration;

  • ‘SMR 겜댕

    February 10, 2021 at 3:33 pm

    The above information was put in the expression as it is, but in the check box It doesn’t seem to work to turn keyframes on and off What should I do..??

  • ‘SMR 겜댕

    February 10, 2021 at 3:37 pm

    The position is still moving. How can it not move when the check box is turned off?

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