ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Wiggle Expression for 2 dimensions with If Else Checkbox control and else animation

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Manuela Williams
Wiggle Expression for 2 dimensions with If Else Checkbox control and else animation
on Jun 8, 2018 at 3:01:15 pm

Hi,
I am using this code in order to randomly scale my layer and then use a checkbox control to turn the expression animation off. My question is, when I set the keyframe with the checkbox control unchecked, the animation stops - as intended - but very abruptly. I was wondering how I could animate the "out" state before it stops when it hits the unchecked keyframe control keyframe? So it does the wiggle animation and then transitions from whatever scale back to 100%.

Thank you for any suggestions!

if(thisComp.layer("K").effect("Checkbox Control")("Checkbox")==1) wiggle(1,70) else [100,100];


Return to posts index

Kalleheikki Kannisto
Re: Wiggle Expression for 2 dimensions with If Else Checkbox control and else animation
on Jun 8, 2018 at 5:50:07 pm

Attach the wiggle amount to a slider, animate the slider from 0 to (amount) for on and from (amount) to 0 for off over the number of frames you like.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

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