Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Turning On Grid Array Expression

  • Turning On Grid Array Expression

    Posted by Kyle Bloom on March 10, 2011 at 3:48 pm

    I have a widescreen project with square shape layers (with an outer stroke) arranged in a grid pattern. I need a way to “turn on” the shape layers over time based on a percentage. (The idea is to show how much money has been raised for a plot of land the company is buying-each square represents a 1/4 acre). So, I need to be able to show that 60% of the money has been raised by “turnin on” 60% of the grid but later be able to “turn on” 70, 80, etc. Ideally, I would still be able to see the outer stroke of the box and just turn on the color.

    Any ideas on how this might be possible? P.S. I’m not married to the idea of it having to be shape layers so if there is a better way to accomplish it, I’m all ears!

    Kyle Bloom replied 15 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 10, 2011 at 6:10 pm

    Here’s a simple example. Say you have 10 layers participating in the graph and they are layers 1 through 10 in your comp. You have another layer named Control, with a slider control applied. You could have an opacity expression like this for the 10 graph layers:

    slider = thisComp.layer(“Control”).effect(“Slider Control”)(“Slider”);
    if (slider >= index*10) 100 else 0

    The details change, depending on the number of layers participating and where they are in the layer stack.

    Dan

  • Kyle Bloom

    March 10, 2011 at 6:24 pm

    That’s brilliant, Dan. Thanks so much for your help.

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