Stop wiggle at specific time and retain the value

I am trying to create an animation whose length can be controlled by the user through a cursor.

It is a layer that rotates in 3D space and it works very well for rotation and length controls.

But I want to give this layer also some random movement in the form of agitation on the position property. I understand how to stop the earthquake at some point in time, but after this point, he jumps right back to its original value. But I want to keep the value on the last image the wiggle is active.

Is there a way to do this?

You can also use the agitation time setting.

Given that time is in the 5th position in the arguments, you must also specify the 3rd and 4th (octaves = 1 and amp_mult = 0.5 are the default values):

holdTime = effect("Slider Control")("Slider");
wiggle(0.5, 50, octaves = 1, amp_mult = .5, t = Math.min(time, holdTime));

Xavier

Tags: After Effects

Similar Questions

Maybe you are looking for