Forum Replies Created

  • Paulius v Ruksa

    July 5, 2021 at 3:22 pm in reply to: Trigger Time Remap with a Checkbox Control

    This works great!

    It will save me so much time and so many keyframes, this is exactly what I needed.

    Thanks a lot Dan!

  • Paulius v Ruksa

    July 5, 2021 at 9:50 am in reply to: Trigger Time Remap with a Checkbox Control

    Thanks a lot for your help, Robert!

    I still couldn’t get it to work, but I had another look at older threads and found this one:

    https://creativecow.net/forums/thread/trigger-a-animation-using-a-checkbox/

    One of Dan’s expressions work perfectly for my case. I have tried it before but must have made a mistake, now I applied it to my comp again and it works as it should. It’s this one here by Dan Ebberts (applied to my comp):

    <pre class=””>

    n = 0;

    p = comp(“2.1a. Creator”).layer(“ICON_CTRL”).effect(“ICON_CTRL”)(“Checkbox”);

    if (p.numKeys > 0){

    n = p.nearestKey(time).index;

    if (p.key(n).time > time) n–;

    }

    if (n > 0 && p.key(n).value)

    time – p.key(n).time

    else

    0

    Having said that, I have another question someone might be able to help me figure out?

    In my main comp, I have a few components with videos. As I’m animating a scroll, the videos need to start playing. So In the Precomp I have a still layer and the video layer. I’m using a simple expression like this applied to Opacity:

    if (comp("2.1a. Creator").layer("VIDEO_CTRL").effect("VIDEO_3")("Checkbox")== true) {100} else {0}

    I’m simply showing the video on top of the still while the checkbox is on. The client however wants me to play sound with the video so I added a Slider Control to Levels and using the same checkbox to control the volume like this:

    if (effect("VIDEO_3")("Checkbox")== true) {0} else {-100}

    I was wondering if there’s any way to fade in the audio say in 20 or so frames rather than cut to it? So I want to use the same keyframe to start previewing the video as well as fade in its audio.

    Thanks!

    Trigger a animation using a checkbox

  • Paulius v Ruksa

    July 5, 2021 at 7:44 am in reply to: Trigger Time Remap with a Checkbox Control

    Hi Andrei, thank you for your reply!

    The second expression is definitely closer, but it still doesn’t behave completely right, if it’s unchecked it’s at frame 0 if it is it animates from whatever frame I am on at that moment which doesn’t work as I always need it to animate from frame 0 and hold on 40.

    I tried to change some of the numbers and experiment with it. For example if I change the bold number 0 to say 40 it does what I need it to do, but it does it really slowly. as you mentioned that time in expressions is in seconds, I tried to use 2, but that didn’t work either.

    Any ideas what could be missing?

    if (comp(“2.1a. Creator”).layer(“ICON_CTRL”).effect(“ICON_CTRL”)(“Checkbox”)== false) {
    0
    } else {
    endT = framesToTime(40);
    linear(time,inPoint+0,inPoint+endT,0,endT);
    }

    Thanks!

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