Animation Based On Proximity To Locator

Hi all, I am looking for a quick way to setup some animation where a row of posts lean over as I animate a locator ast them. Basically what I want to do if possible is query the closest post to the locator on each frame and give that post a slight rotation. Does anyone know how I might do this?

many thanks in advance for any info

gary

off the top of my head, if u wanna do it with mel(no use of api), just create a bunch of diatance tools, between each post and your locator, and parent constrain its locators to your locator and posts, and through an expression or so, get the minimum distance, and through it apply your rotation,
i doubt it being as "quick" as you hoped, but i think if u create it though a mel script to iterate over the stuff selected, ull be able to reuse it really fast

isam