ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Alexei Vasyutin
Sorry Guys, but it happened again(: Check Box Trigger to reverse animation
on Mar 19, 2020 at 7:45:48 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;
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]