After effects expression to wiggle position linear

broken image
broken image

I don't want to go above 100% scale so that will be the value for value2, and I don't want to go below 60% (your choice here) so that will be the value for value1. To fix the expression error I need to add the values generated by the ease() method into an array and set a minimum and maximum scale value for value1 and value2.

broken image

Scale is always an array of at least 2 numbers, but if the layer is 3D then there are 3 values. I want the start of my animation to happen at about 8 and the maximum value to happen at about 43 so those would be my tMin and tMax values. This music swells from zero to a maximum value of about 55. Here's what a typical graph of the Both Channels Slider would look like: To figure out what values you should be using for tMin and tMax it is a good idea to pick the ('Both Channels')('Slider') in the graph editor looking at only the value graph and choose the minimum and maximum values you want to use to trigger your effect. T = thisComp.layer('Audio Amplitude').effect('Both Channels')('Slider') When you are using the Keyframe Assistant to Convert Audio to Keyframes you generally define t like this and then define a valud (v) for the ease method. tMin is the minimum value that number is going to be, tMax is the maximum value for t. If you look at the method generated by the Expression Language Menu you will see something like this: The ease() or linear() methods generate one value.

broken image