Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions layer visibility expression

  • layer visibility expression

    Posted by Guy on September 27, 2005 at 8:45 pm

    I would like to create an expression that turns a layers visibility ON or OFF (the little eyeball, not opacity) based on a Null layers’ checkbox control (the expression control effect)

    how can I do this?
    what parameter do I apply the expression to?

    (basically I have a mega-complex comp and want to turn off layers (many of which are nested in other comps) in sets, quickly.

    thanks!

    Dan Ebberts replied 20 years, 7 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    September 27, 2005 at 9:34 pm

    Assumint the null is in another comp (Comp 1), the opacity expression for a layer in Comp 2 would look like this:

    if(comp(“Comp 1”).layer(“Null 1”).effect(“Checkbox Control”)(“Checkbox”) == 1) 100 else 0

    Dan

  • Guy

    September 27, 2005 at 9:45 pm

    Dan, is there a way to get the driven layers visibility switch to turn off (rather than turn off opacity)

    I am trying to turn on/off sets of layers to make the project easier to work around/render, and am hoping turning of sets of layers (automatically using experssions) will help.

    For example, I would like to turn off all titles, then maybe turn off all motion footage clips etc.

    thanks!

  • Guy

    September 27, 2005 at 9:47 pm

    what got me thinking that this is possible is the trapcode echospace demo video shows the effect, which basically, automatically applies expressions to layers it creates, turn ON/OFF sets of layers visibility.

  • Dan Ebberts

    September 27, 2005 at 9:51 pm

    You’d have to do it with a script. Expressions don’t have write access to the “eyeball”.

    Dan

  • Guy

    September 27, 2005 at 10:28 pm

    hmm, then perhaps a script that turns off all layers with certain text in its name?
    Is that possible?

  • Dan Ebberts

    September 27, 2005 at 11:05 pm

    I can’t think of any reason that wouldn’t work.

    Dan

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