I am working on an interactive light installation in shape of a wall covered by a energy gathering technology called Piezo Electronics. Before i build it in the real world i want to make it in Maya.
I have made the wall full of flaps and connected it to an air field. The idea is that whenever one of the flaps gets moved by the air field a small ball will light up on the other side. I have thought about faking it by key framing the lights, but since there are 7 walls and each has about 500 flaps, that would take about a month, which i don't have.
So what i need is to connect a polygonal object to a light ball, so that whenever it moves the light will flash. I know a bit of java scripting but i have never used mel scripts before so i really have no clue on how to make this or if it is possible at all.

Any help on this subject would be much appreciated !