Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions using a layer’s visibility in an if/then expression on another layer

  • Elizabeth Starr

    May 12, 2020 at 9:19 pm

    Thank you so much for responding. I really appreciate it!!!

    So I put the expression in the opacity property of the text layer I want to have move and here’s what it returned:

    Error: expression result must be of dimension 1 not 2.

    I’m not sure what this means.

    I’ve included the expression below.

    Thanks again!

    lay1 = thisComp.layer("INSTAGRAM").effect("Checkbox Control")("Checkbox");
    lay2 = thisComp.layer("TWITTER").effect("Checkbox Control")("Checkbox");
    lay3= thisComp.layer("FACEBOOK").effect("Checkbox Control")("Checkbox");
    lay4= thisComp.layer("YOUTUBE").effect("Checkbox Control")("Checkbox");
    lay5= thisComp.layer("SKYPE").effect("Checkbox Control")("Checkbox");
    lay6= thisComp.layer("SNAPCHAT").effect("Checkbox Control")("Checkbox");
    y=transform.position[1];
    if
    (lay1==1 || lay2==1 || lay3==1|| lay4==1|| lay5==1|| lay6==1)
    {
    x=(56);
    }
    ;
    else
    x= 556;
    [x,y];

  • David Cabestany

    May 12, 2020 at 9:25 pm

    Happy to help, I’ve received so much assistance from this forum that I’m glad to help with something myself.

    It should go on the position parameter, not opacity, opacity can only take one value. Position needs 2 or 3.

    x should equal the position that you want when the logos are visible, which if I understood is 56 pixels to one side of the position when there is no logo visible, so there’s a specific value that you need to enter there, disable the expression move your layer manually and check waths the value where it is.

  • Elizabeth Starr

    May 12, 2020 at 9:30 pm

    Boom! It worked! Thank you, thank you, thank you! Wow, what a gift your help was.

Page 2 of 2

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