Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Newbie to expressions needs a simple tip

  • Newbie to expressions needs a simple tip

    Posted by Ste Kerouac on January 25, 2007 at 4:30 pm

    Can anyone explain to me what is wrong with this:

    yadjust=this_comp.layer(“adjuster”).position[1].valueAtTime(time-3.00);

    And what is the best book/website/DVD about expressions grammar – I used to program in BBC Basic many years ago but I swear it was a heck of a lot more intuitive than this ‘language’

    Thanks

    Ste Kerouac replied 19 years, 3 months ago 3 Members · 3 Replies
  • 3 Replies
  • Andrew Kramer

    January 25, 2007 at 5:29 pm

    yadjust=this_comp.layer(“adjuster”).position[1];
    yadjust.valueAtTime(time-3.00)

    Maybe this? Didn’t check it but somtimes I have trouble when I put everything together in one line. You can also make the second line a variable if you need to refer to it in later code.

  • Dan Ebberts

    January 25, 2007 at 5:35 pm

    You need to do the array indexing after valueAtTime(). This should work:

    yadjust=this_comp.layer(“adjuster”).position.valueAtTime(time-3.00)[1];

    Dan

  • Ste Kerouac

    January 26, 2007 at 12:14 am

    Thanks. You guys are great.

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