Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How can I control childrens brightness and visibility from null layer?

  • How can I control childrens brightness and visibility from null layer?

    Posted by Thor64 on April 9, 2006 at 5:23 pm

    I am making a 3D scene – AE style 😀
    I have a 3D null layer acting as parent to my planes (layers forming a wooden beam)
    Now the idea is of course to have a nice control over the shy children layers (like scale, position etc.)

    Question:
    Can i have the children layers hide too when i click the eye icon to hide the null layer? (Would be great in the design phase)
    Also: is there an easy way to set a parents children to have the same -say- brightness?
    It will probably work through expressions (expressed for EACH child layer), but some sort of universal child expressions?

    Thor64 replied 20 years, 1 month ago 4 Members · 8 Replies
  • 8 Replies
  • Mylenium

    April 9, 2006 at 6:30 pm

    [thor64] “…but some sort of universal child expressions?”

    No, all expressions have to be linked explicitely, there is no automatic inheritance of parent expressions and the parameters/ effects they drive. Attributes such as layer visibility are read-only (isVisible), you’d have to use the opacity parameter to “hide” your child layers.

    Mylenium

    [Pour Myl

  • Thor64

    April 9, 2006 at 7:06 pm

    ok. Well, thanks anyway 😀

  • Sam Moulton

    April 9, 2006 at 10:43 pm

    you could do what you want but not without adding an expression to each child.

    to control opacity try putting a slider on your null. The slider is tied to opacity of the null by the pickwhip, then add an expression to each child that looks at the value of slider on the null. Now when you animate the opacity the slider copies the values and any layer looking at the slider would follow. come to think of it, you may not need the slider.

    I think there’s also a way for an expression to tell whether or not a layer is visible by using a true statement. I don’t have my notebook with me but I think Dan Ebberts wrote something like “if visibility(not the right term probably) = true then…” which you could add to the expression to turn transparency to 0 on each of the children. this wouldn’t turn off the eyeball, but it would make the layer invisible.

  • Dan Ebberts

    April 10, 2006 at 12:35 am

    “active” is the layer attribute you’d want to test (true if the eyeball is on, false if it’s off).

    Dan

  • Thor64

    April 10, 2006 at 12:40 am

    ah thanks!!

  • Thor64

    April 10, 2006 at 11:55 am

    thisComp.layer(“beam_long”).active=effect(“Checkbox Control”)(1);

    the checkbox should turn the beam_long layer on and off, right?
    doesn’t work.

  • Dan Ebberts

    April 10, 2006 at 1:17 pm

    No, you can’t turn the active attribute on and off with an expression (and even if you could, you wouldn’t be able to do it from an expression in another layer). What you’d have to do is have an opacity expression in “beam_long” that looks at the active attribute of another, “master” layer.

    Dan

  • Thor64

    April 10, 2006 at 4:45 pm

    Ok thanks. That cleared things up 😀
    BTW: Will AE not render 100% transparent layers?

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