Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions link expression through comps

  • link expression through comps

    Posted by Andrea Digiorgio on June 21, 2019 at 11:49 am

    Hello, i’ll explain what i’m trying to do.

    – I have to create a slider to control the visibility of the levels inside a comp.
    – I want the slider to be outside that comp, to a dedicated level with other slider for other comps.
    – I get a sintax error (images)
    – But it works if i put the slider into the same composition on a NULL layer.

    Why? It was working this system back in the years.
    How can i solve?

    Thank you

    Switch=comp("Man").layer("Controls").effect("Slider Control")("Slider")
    Switch2=Math.round(Switch);
    if(Switch2==2){100}else{0};

    Andrea Digiorgio replied 6 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Miguel De mendoza

    June 21, 2019 at 12:25 pm

    The strings are case sensitive. In the image, “CONTROLS” appears in upper case, and in your code in lowercase “Controls”. Could it be that?

  • Andrea Digiorgio

    June 24, 2019 at 5:02 pm

    Nope, i’ve tryed everything.

    But i just re-installed After Effects and now it works, probably was bugged by the time?

    https://andreadigiorgio.myportfolio.com

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