Mailing List AE-List@media-motion.tv — Message #65920
From: D <AE-List@media-motion.tv>
Subject: Re: [AE] Repelling layers
Date: Mon, 20 Jan 2020 18:45:32 +0000
To: After Effects Mail List <AE-List@media-motion.tv>
…and a good answer, thanks!!

On Monday, 20 January 2020, Nathan Shipley <AE-List@media-motion.tv> wrote:
> At that point you’d probably want to just use something like the Newton plugin which is built for this kinda stuff.  It would be a bad use of expressions, get complicated, and probably bog down pretty quickly since expressions don’t have a “memory” as Dan Ebberts puts it.  That is to say, they only know what is going on in the current frame and you have to build in kinda slow workarounds to deal with this; there are no persistent variables, which you’d want to build a physics system. 
>
> Good question though!
> On Mon, Jan 20, 2020 at 8:22 AM D <AE-List@media-motion.tv> wrote:
>
> …I should say 'make the grey blocks collide with each other’ as opposed to repel each other.
>
> On Monday, 20 January 2020, D <dow.hanson@gmail.com> wrote:
>> Excellent Nathan.
>>
>> Is it possible with expressions to make the grey blocks repel each other too? (i’m not asking you to do it, I’m just interested whether it’s possible with expressions).
>>
>> Thanks.
>>
>> On Thursday, 16 January 2020, Cary Spenser <AE-List@media-motion.tv> wrote:
>>> Nathan -
>>> Really helpful to rocket my understanding of scripting. 
>>> Thanks!
>>> Cary
>>> On Wed, Jan 15, 2020 at 1:15 PM Nathan Shipley <AE-List@media-motion.tv> wrote:
>>>
>>> Henry,
>>> Here's something really basic I just whipped up that simply moves layers away from a null.  It just pushes objects away from where the null is when they're closer than the "Distance Threshold" control.  You can increase the amount that they move with "Move Away Multiplier."
>>> Just paste the position expression from one of the solids to your own layers and it should work or at least be a starting point to tinker further.  Expression pasted below as well:
>>> Here's a quick screencapture showing what it does:
>>>
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster