decorative banner

Moving a layer in a perfect circle


    You can create an expression without using properties from other layers. For example, you can make a layer revolve in a perfect circle or move back and forth diagonally.

To create a circular movement in one layer:

  1. Start one layer.
  2. Select the Position property for the layer and choose Animation > Add Expression.
  3. Select the default expression text and type:
  4. add([this_comp.width/2, this_comp.height/2],

    [Math.sin(time)*50, -Math.cos(time)*50])

  5. Click outside the expression to activate it.