Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Turning Layers on and off script or plugin?

  • Turning Layers on and off script or plugin?

    Posted by John Jackowiak on June 30, 2011 at 6:18 pm

    I currently have an expression that turns over 50 precomp’s on and off depending on which one I want my main comp to reference. It is based on the precomp’s opacity with an If/Then script (If this, then 100%, Else, 0%)

    An Example:

    target = comp("MASTER COMP").layer("MENU SELECTION").effect("Main Menu")("Slider");
    if (index == Math.round(target)) 100 else 0

    Because there are so many precompss, my render is pretty long. Is there a way to actually shut layers on and off? Dan Ebberts recently introduced me to pixel bender to make some custom plugins. I’m assuming this can only be accomplished by creating some sort of plugin? I just don’t know where to start looking, Thanks!

    John Jackowiak
    Brand New Motion
    jo*******@***il.com

    ***Recent Work***

    https://brand-newmotion.com/reels/motion_graphics.mov

    John Jackowiak replied 14 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 30, 2011 at 6:30 pm

    I think a script that uses the same logic as the expression but trims the layers instead of setting the opacity might be the best bet. Of course if you change anything in your comps, you’d need to run the script again. It shouldn’t be too tough to write and would be a good one to learn with if you’ve never done any scripting.

    Dan

  • John Jackowiak

    June 30, 2011 at 6:33 pm

    Ah that might work. Thanks Dan. I’ll look into it.

    John Jackowiak
    Brand New Motion
    johnj.bnm@gmail.com

    ***Recent Work***

    https://brand-newmotion.com/reels/motion_graphics.mov

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