2690

How to rock with Wiggle for a specified amount of time with AfterEfeects Expressions

How to rock with Wiggle for a specified amount of time with AfterEfeects Expressions

2012.6.24

I wanted to recreate the effect of a Wiggle that only shakes when something hits the ground, so I went through a lot of trial and error to make it look like Memo for this.

Confirmation

way of thinking

The idea is simple: run wiggle for a specified amount of time.

code

 if (time >= 3 && time <= 4) {
  wiggle(1000,20);
} else { }
  value;
}

In the above code, this means that the wiggle will run for 3 to 4 seconds.

The time in the above code is the current time in seconds. (Note that it’s not a frame.)

I heard that there is a way to convert from seconds to frames, but it didn’t work for me. I made a visual match.

Reference.

[itemlink post_id=”1977″]