Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Position Expression – based on Slider Number

  • Position Expression – based on Slider Number

    Posted by Scott Moore on July 15, 2014 at 10:02 pm

    I have a project where I am taking away a layer using opacity based on a slider number and if else statement.

    I want to be able to move another layer position (X,Y) based on that slider number.

    What am I doing wrong?

    Thanks,

    s=Math.round(comp("Football Schedule INFO").layer("Controller").effect("No of Lines")("Slider"));
    if (s>=1) [865,225]
    (s>=2) [865,275]
    (s>=3) [865,325]
    (s>=4) [865,373]
    (s>=5) [865,425]
    (s>=6) [865,475]
    (s>=7) [865,525]
    (s>=8) [865,575]
    (s>=9) [865,625]
    (s>=10) [865,675]
    else [865,750];

    Scott Moore replied 12 years, 2 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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