Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Applying an expression to a pre-comp instead of layer

  • Applying an expression to a pre-comp instead of layer

    Posted by Stu William on June 19, 2023 at 1:11 pm

    Hi there,

    I have been working on this comp:

    https://youtu.be/zFH–s_M9w4

    I’m trying to make the precomps (the letter and shape icons) rotate like cabins in a ferris wheel so they stay straight.

    I have parented each precomp to the ring layer which is rotating.

    I have used the follwing rotation expression on the first “Tr” precomp:

    thisComp.layer(“Ring”).transform.rotation*-1

    and pickwhipped the rotation expression to the ring layer.

    I then copied the rotation expression to each pre comp.

    It doesn’t seem to be working, with each precomp rotating in a ring (or not at all on the “Av” precomp). The ring is also rotating back and forth as in the video below:

    https://youtu.be/_M4Z4SeVnDQ

    Do apply expressions differently to a precomp vs a layer?

    Collapse transformations is enabled.

    Thanks

     

     

     

     

     

     

     

     

    Filip Vandueren replied 3 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    June 19, 2023 at 2:15 pm

    I think the problem lies not in the expression, but it looks like the anchorPoints of the individual layers are all near to the anchorpoint of the circle, instead of at their own center.

    Use the Pan-behind tool (Y) to reposition the anchorpoints of each cabin and it should work.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy