Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions basic expression query

  • basic expression query

    Posted by Nico Jones on October 31, 2005 at 11:59 am

    Hi there chaps

    This is, I’m sure, impossibly basic stuff but I’m linking the scale of a solid to a null object using the pickwhip. This works fine, but when I add a +10 to the expression in the solid’s scale property, only the X property is affected.

    So if the null’s scale is 50/50 the solids scale will be 60/50. How do I get both X and Y on the solid’s scale to be the same as the null’s but plus 10?

    Cheers guys

    nico

    Steve Roberts replied 20 years, 9 months ago 3 Members · 4 Replies
  • 4 Replies
  • Steve Roberts

    October 31, 2005 at 2:11 pm

    That is an unexpected result … for me at least. Probably not for Dan … 🙂

    Here’s my shot at it:

    s = thisComp.layer(“Null 1”).scale;
    extra=10;
    [s[0]+extra,s[1]+extra]

    Tying “extra” to a slider expression control would be niftier, but I’ll leave that to you. 🙂

    Steve

  • Dan Ebberts

    October 31, 2005 at 3:11 pm

    That should work. This is a little more efficient:

    value + [10,10]

    Dan

  • Nico Jones

    October 31, 2005 at 3:13 pm

    thanks guys!

  • Steve Roberts

    October 31, 2005 at 6:27 pm

    Clean, Dan!

    S.

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