Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › ValueAtTime is not a function?

  • ValueAtTime is not a function?

    Posted by Shant Dolbakian on December 10, 2020 at 11:29 pm

    Hello AE people, hoping someone can help me with this one.

    I have two rectangle shape layers. Big Rec and Small Rec.
    Big Rec size is keyframed to expand from (0,116) to (552,116) so it’s getting longer while the height stays the same.

    Now I want Small Rec just below it, to also expand at the same length but with a static chosen height, and I want it to happen some time later (delay)

    So in Small Rec Size I wrote:

    ———

    x=thisComp.layer(“BIG REC”).content(“BIG REC”).content(“Rectangle Path 1”).size[0].valueAtTime(1)

    y=78.7;

    [x,y]

    ———
    Y is working, but X is giving me an error:

    thisComp.layer()content().content().size[0}.valueAtTime is not a function.

    What am I missing?

    Shant Dolbakian replied 5 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 11, 2020 at 1:18 am

    Try switching this:

    .size[0].valueAtTime(1)

    to this:

    .size.valueAtTime(1)[0]

  • Shant Dolbakian

    December 11, 2020 at 1:48 am

    That freakin worked, thank you so much Dan!!

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