Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Layer control and expressions

  • Layer control and expressions

    Posted by Leopoldo Perizzolo on October 13, 2016 at 7:19 pm

    Hi folks,
    I’m working on a preset that uses corner pin data and elaborates it with a series of cursor, angle and point control effects.
    I ran into an issue: in the preset that I’ve created, every time I apply it onto a layer it disables every control effect because the first layer control is set on the wrong layer and it can’t find the layer with the corner pin data; so every time I have to open EVERY SINGLE control effect to re-enable them after I’ve set the correct source layer of corner pin.
    Is there a way to do it automatically as soon as I select the correct layer from which it should look for the data? I’ve tried with the try-catch statement, but it wouldn’t enable the effects after the correct layer was set.
    I include a couple of images showing the issue.
    Don’t struggle on the language, I don’t know how to write expressions internationally.
    Thanks!

    IMG 1:
    IMG 2:

    Leopoldo Perizzolo replied 9 years, 9 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    October 13, 2016 at 7:27 pm

    try/catch should work. What does your try/catch expression look like?

    Dan

  • Leopoldo Perizzolo

    October 13, 2016 at 8:06 pm

    well, I don’t really remember ? I think I just wrote something like:
    try{ *and the whole expression* }
    catch(e){ *and nothing here* }

    Could you tell me how I should set it up so that it can actually work?

  • Dan Ebberts

    October 13, 2016 at 8:46 pm

    Like this, I guess:

    try{ *and the whole expression* }
    catch(e){value}

    Dan

  • Leopoldo Perizzolo

    October 13, 2016 at 9:01 pm

    Oh my god you’re amazing!!!! ???
    Thank you!
    By the way, do you know how I could hide or integrate the effects so that, when I apply the preset, only the effects that I want to see actually show up while the others used to process the data in between the steps are not visible, yet still working? I.E., say I just want to see the layer control effect and the final point control, while other effects are hidden underneath the preset.
    I don’t know if it’s possible, but it would be very handy 😉

  • Dan Ebberts

    October 13, 2016 at 9:09 pm

    I don’t know of any way to do that unless you apply a second preset (with the hidden controls) to a hidden layer. It would be easy to do if you’re using a script, but it doesn’t sound like you’re doing that.

    Dan

  • Leopoldo Perizzolo

    October 13, 2016 at 9:36 pm

    Oh, I see.
    Ok then, let’s keep it that way! ?
    Thank you so much for your help!
    Bye bye!

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