Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Checkbox for five different positions

  • Checkbox for five different positions

  • alex dinnin

    May 5, 2020 at 6:47 am

    Good morning,

    I want to create five different positions for a layer and have the ability to assign a check box expression to them.

    So if I select the first check box it moves to position 01, the second position 02 etc etc

    is this possible.

    any help always appreciated

    thanks

    ALex

  • alex dinnin

    May 5, 2020 at 8:51 am

    In the bowels of the Cow I found the solution if anyone stumbled across this.. and adapted the expression to suit

    L = thisComp.layer(“Box Mover”);
    if (L.effect(“1st Set”)(“Checkbox”) ==1) [414.3381,949.9]
    else if (L.effect(“2nd Set”)(“Checkbox”) ==1) [489.6381,949.9]
    else if (L.effect(“3rd Set”)(“Checkbox”) ==1) [489.6381,949.9]
    else if (L.effect(“4th Set”)(“Checkbox”) ==1) [526.4381,949.9]
    else if (L.effect(“5th Set”)(“Checkbox”) ==1) [566,949.9]
    else [345.6381,949.9];

Viewing 1 - 2 of 2 posts

Log in to reply.

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