Copy link to clipboard
Copied
Hello
I am creating a Godzilla-ish animation but I have a problem with an expression. If my Godzilla steps, I want the buildings to shake a little bit. I used this expression on the position buildings layer:
const t = time;
if(t > 0.8 && t < 1.3) {
wiggle(6,10)
}
Now I get an error saying that there's an undefined value in line 1. But everything works in the animation itself?
Here's a recording:
thanks in advance
I think you need an else-statement to tell AE what to do, if time isn't between 0.8 and 1.3.
Something like:
if (time > 0.8 && time < 1.3){
wiggle(6,10);
} else {
value;
}
*Martin
Copy link to clipboard
Copied
I think you need an else-statement to tell AE what to do, if time isn't between 0.8 and 1.3.
Something like:
if (time > 0.8 && time < 1.3){
wiggle(6,10);
} else {
value;
}
*Martin
Find more inspiration, events, and resources on the new Adobe Community
Explore Now