Movement controls visibility
Is there a way to connect an object´s transform (M/R/S)to other object´s visibility and modifiers? In the attached image, a sphere moves (-Y axis)in an array of objects. 1- As it touches each object, they became visible (those in white). 2- Then, some rows behind, each row begins to fold into a ring (those in magenta). In 1-, the simple (and draft) way is to link the sphere movement to each object, by comparing their Y position (in natural language: if Y of sphere is greather than obj Y, then obj is visible). This is without checking surface intersections ofcourse, but never used script before and seems I cannot script even that simple rule.
In 2-, all the row has a parametric bend modifier that could be set in the same way (as the sphere passes), but for now is animated by hand. So, I thanks in advance those who are kind enough to spare some time and help me in this matters (and excuse my english).