Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Sorry Guys, but it happened again(: Check Box Trigger to reverse animation

  • Sorry Guys, but it happened again(: Check Box Trigger to reverse animation

  • Dan Van

    March 19, 2020 at 7:45 pm

    Hi All! Find lot of expressions here but it didn’t work for me.
    I’ve got composition with footage of a Hand Tap. I’d like to to add a Check Box Control to control taps: on — tap forward, off — tap back ☺

    Did a Check box to 2 layers (tap forward and tap back) in Essential Graphics and I’d like to apply expression to Time Remap with pick wiped Check Box Control in Master Properties. The ideas was about playing animation inside the comp of Taps from start when I switch between on/off.

    but no…when I add 2 or more keyframes “On” the Tap play forward. When I replace this 2 or more keyframes “Off” the Tap play backward. But when I’d like to mix keyframes like ‘on (tap forward), off (tap backward)’ works only the very first Keyframe.

    here’s what i’ve got.

    Can a-ny-body…. help me-e… some-body to….taaap?

    chkBx = masterProperty("Checkbox");
    {
    if (chkBx.value == 1) {0} else
    if (chkBx.numKeys == 0){time}
    else {n = chkBx.nearestKey(time).index;
    if (chkBx.key(n).time > time) n--;
    time - chkBx.key(n).time;}
    }
    {
    if (chkBx.value == 0) {0} else
    if (chkBx.numKeys == 0){time}
    g = chkBx.nearestKey(time).index;
    if (chkBx.key(g).time > time) g--;
    g > 0 ? time - chkBx.key(g).time : 0;
    }

Viewing 1 of 1 posts

Log in to reply.

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