Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scaling expression

  • Scaling expression

    Posted by Kevin Reiner on October 18, 2006 at 3:24 am

    This should be a simple expression, but I can’t make it work correctly.

    I have two identical circles. I want to make a scaling effect that when one circle is scaled up, the other circle scales down at the same rate, and then vice versa. So that there is always one big circle and one small circle. I keep getting caught up on the fact that negative values just flip flop the image. (did any of that make sense?)

    Anyone have any clues?

    Thanks in advance,
    Reins

    Julian Sixx replied 19 years, 10 months ago 3 Members · 2 Replies
  • 2 Replies
  • Mike Clasby

    October 18, 2006 at 3:51 am

    This from Dan should be what you want:

    s = 10000/comp(“Comp name”).layer(“layer 1”).scale[0];
    [s,s]

    Just plugin your layer and comp names (you probably figured that out already). Great expression.

  • Julian Sixx

    October 18, 2006 at 3:53 am

    Hi
    pickwhip the scale proberty from C1 to C2.You should have sth. like this now
    thisComp.layer(“Solid”).transform.scale

    now add value- in front of it
    value-thisComp.layer(“Solid”).transform.scale

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