paxomaha.blogg.se

After effects add wiggle expression
After effects add wiggle expression













after effects add wiggle expression

Using a coding language adapted from javascript, you can use all sorts of customizable commands to apply complex motion to layers. Pressing the alt/option key, click the stopwatch beside “position.” When you see the position text turn red and begin typing in the timeline, you are creating what is called an “expression” in After Effects.

after effects add wiggle expression

I want to apply a wiggling or shaking effect to both of these layers, so I will repeat these steps for both objects. For this example, I have an image of pancakes and then some stars.

  • In your after effects file, select the layer that you want to shake.
  • This is because refers to the first property, in this case x position, and refers to the second property, in this case y position. Note that we also had the change the ‘ 0’ within the second set of square brackets to a ‘ 1’. However if we change the second ‘ w’ (which is the y position) the expression will look like this: w = wiggle(2,10) ,value] If we change the first ‘ w’ (which is the x position) the expression will look like this: w = wiggle(2,10) ,w] By inputting ‘ value’ we ask the expression to refer to the original value set on the property. On the second line, we need to change one of the ‘ w’s to ‘value’. If we wanted just one of our positional values to wiggle, but not the other, this is an easy fix! It will instead cause both the x and y position to be uniform, meaning the object or layer will simply move in diagonals.

    after effects add wiggle expression

    The expression in the previous example (scale), will not work if you apply it to the position. Wiggle x or y Position w = wiggle(freq,amp) ,w] The expression at the top is wiggle(0.5,100), then wiggle(1,100), then (wiggle(1.5,100) and so on until we get to very bottom, where the expression is wiggle(3.5,100).Īs you can see in the example, the further down we go, the faster the x position changes. From top to bottom, the only difference is the frequency, which is going up in 0.5s. If you input ‘ 2’ then the value will change twice per second, and so on.īelow is an example that is affecting the x position. If you input ‘ 1’, then the value will change once per second. This is the amount of times the value changes per second. The expression may have automatically added the final bracket, but add this at the end if not )Īn example expression looks like this: wiggle(2,10)Īs mentioned previously, the first number is the frequency, but what is the frequency? Now enter a second number, which is the amplitude of the wiggle. Whilst holding option on a mac, or ALT on a PC, click the stopwatch next to your desired propertyĮnter your first number, which is the frequency in which the wiggle occurs, followed by a comma ( ,)















    After effects add wiggle expression