-
Dan Ebberts’ Random Grid Movement with collision
Hey folks,
Possibly an easy one, or possibly a very tough one here. I’m working on a comp in which many light layers are moving on a 2D grid using Dan Ebberts’ Random Grid Movement technique. These lights will be driving Trapcode Particular emitters configured to essentially draw random straight lines around my comp.
The trick: I would like to finagle this so that the lights NEVER cross over into a defined circular area in the middle of my comp. Ideally they would deflect off the boundaries of the circular area– not with any fancy momentum or anything, just change direction to divert away from the area– and continue making random position changes from there.
The technique I’ve been trying to use to achieve this uses a precomped shape layer that represents my “no-fly zone,” along with the sampleImage() method to detect when a light is about to enter that area. Unfortunately I’ve been unable to figure out where and how to incorporate the sampleImage() method successfully; so far all my attempts just fail and disable the expression.
If any of you chaps have an idea of how to do this, it’d be much appreciated!
Jared Flynn
Motion Graphics Designer / Lead AE
Lone Wolf Documentary Group