Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Proximity / Inverse Magnetism affects position in a dynamic system

  • Proximity / Inverse Magnetism affects position in a dynamic system

    Posted by Nick Adcock on July 19, 2012 at 9:52 pm

    Hello all…(clears throat)…Dan and Colin,

    I have done some looking into the brilliant expression work by Dan Ebberts and Colin Braley on proximity detection and repelling, but have not seen a way to accomplish what seems so simple in my head. Doesn’t everything seem so simple up there?


    Above is an image of what I am working with. I want to have these circles react to each other based on how others around it are moving. The movement here is very subtle but imagine a group bubbles that push each other apart as they move through spaces or grow in spaces.

    It seems there is a way to tell each layer to react (change position) to alphas other than it’s own and move at a speed according to the directional velocity of those other alphas. Perhaps making a static box around this group would help contain everything so that things don’t go flying off.

    Does anyone have any experience creating a dynamic particle system like this using expressions?

    Thanks so much…

    Nick

    Nick Adcock replied 14 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 20, 2012 at 12:07 am

    I think that’s probably beyond the capability of expressions, because there’s just too much to keep track of. Expressions have no memory, so at each frame, each particle would have to recalculate its entire history since the beginning of the comp just to figure out where it should be now.

    I think you could do it with a script though, assuming you could define the motion well enough to turn it into an algorithm. Unlike expressions, a script could keep track of the current postions of each particle as it goes through its frame-by-frame calculations.

    Dan

  • Nick Adcock

    July 24, 2012 at 2:36 pm

    Thanks for the response Dan. I did some experimenting and even looked at the Newton plug-in, but did not have any results. There may have been too much going on motion wise for it to be visually appealing anyway so I went in another direction and your expressions for decay really helped out there.

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