Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Inheriting properties, and holding them using an expression.

  • Inheriting properties, and holding them using an expression.

    Posted by Waldemar Werbel on May 7, 2006 at 6:54 pm

    Hi,

    I’m familiar with using the pick-whip to get a layer to inherit properties from another layer, okay, no big deal there.

    Does anyone have an expression that will inherit a property (ie. position/scale/rotation) of a null object but then HOLDS the values at the point at which it inherits them?

    Would be very useful to me. TIA for any help.


    w.werbel. uk.

    https://www.waldemar.dsl.pipex.com/cv

    Waldemar Werbel replied 20 years, 3 months ago 3 Members · 4 Replies
  • 4 Replies
  • Sam Moulton

    May 7, 2006 at 7:03 pm

    are you looking for valueAtTime?

    something like

    thisComp.layer(“Null 1”).transform.position.valueAtTime(1)

    would give you the position value of null 1 at 1 second. combine this with an if else statement and you could make things happen.

  • Waldemar Werbel

    May 7, 2006 at 7:27 pm

    Yeah that would do it, but is it possible to make it even more ‘automatic’. let’s say that the layer that’s inheriting the null’s position has an in point of 2 seconds, rather than type that time value in manually, is there a way that the expression can say “okay, this layers in point is at 2 seconds, what’s the nulls position at 2 seconds? i’m going to take that value and hold it…”

    the reason i need the automation is that the comp will be holding a whole heap of layers and in the variations i’m going to be making i’ll be using the ‘sequence layers’ command a fair bit hence the values are going to be changing quite a bit – if they can be calculated automatically then that’ll save me a heap of time for sure.

    thanks for your help man.


    w.werbel. uk.

    https://www.waldemar.dsl.pipex.com/cv

  • Dan Ebberts

    May 7, 2006 at 11:09 pm

    Like this:

    thisComp.layer(“Null 1”).position.valueAtTime(inPoint)

    Dan

  • Waldemar Werbel

    May 8, 2006 at 9:25 am

    Cheers Dan. Excellent!


    w.werbel. uk.

    https://www.waldemar.dsl.pipex.com/cv

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