From: "D" Received: from mail-qk1-f174.google.com ([209.85.222.174] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7494955 for AE-List@media-motion.tv; Mon, 20 Jan 2020 19:45:35 +0100 Received: by mail-qk1-f174.google.com with SMTP id z14so186248qkg.9 for ; Mon, 20 Jan 2020 10:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=6k8zVtcyTAfKeE7o635MMxQDkaV/ilEHHyXeREzstZo=; b=Es4QjqWujPZGXV0tK4FhhV+2Kwhb7eEK3uAsY8XUiVa3gJAa9mIVvyixGNytUj6ovM yfp+EjNN5JvBnZKGbnU96IWiFv3faxEI9/pJsG6tH0YF7pMPeANut3x9CeSuyb1SlO5F BFT+fLy4no1NnNq52aqfLyCD7mE8vIIOdyR8vt6o978PL4of9xsmaQCPgY6Fo6HFn9NW s68XiOuXxix1uxJ6FvAacNHEfi+YVqcwPGFLYZneadmJFr9GaGuf2TEE5fpbtefd7Rf5 nPhV0Lznu9wyEvdjevX3A6GPDCjV79vNetdh5IRfnBAQwAMXFbIMLhXWV9E38bvX+y5F mFNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=6k8zVtcyTAfKeE7o635MMxQDkaV/ilEHHyXeREzstZo=; b=bFtDN08BejYdxJrymyMYkMuePpv3w8uwHtP/tRi6p3Q44sKmFkRFZLbVaiV/+pUoLJ drH+/9lp6ykZ4er/39iCU6Smzd4rVRoteAjijg4ixzwIaLqEF0eDPVPn3dpRV8tmdMMo TplqPrXtupJy16CXU9n3b1mDRQXqbeFx6H2YJYBDXVJy03X+gAHoMUZjrRSDQBQr2LbJ uvb7cJKv/uFjUcaqxEcwjHmDUsWUSZFSCBK0tI1GtHdzdzsbujCAXEd4nk5+ONFBEPTd r9fhRtxgyhwVJFcuxm7vGDhTU44GN9iwIu/0tuDd/I9I2axlf6Zq4YLBsfBQrXUaLFev S6tA== X-Gm-Message-State: APjAAAU7yWvC4d/ZoGLi19H4naaaHgGtsz4JWj3C1vEH3rgIJY3UEomw uEXsWzczZJ5mDgBLx4hvFb8E38LxUTdV4bbY9RZU4+LE X-Google-Smtp-Source: APXvYqyOxbn+vnUprLzNvjzlfrCVv39zPhbuS6WYi4fUx6+wmekYoC0RPQXqiYfW8rMhGLEyIGHTaZVv5ldF96p0gTk= X-Received: by 2002:a05:620a:1fa:: with SMTP id x26mr911148qkn.311.1579545933343; Mon, 20 Jan 2020 10:45:33 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ac8:fee:0:0:0:0:0 with HTTP; Mon, 20 Jan 2020 10:45:32 -0800 (PST) In-Reply-To: References: Date: Mon, 20 Jan 2020 18:45:32 +0000 Message-ID: Subject: Re: [AE] Repelling layers To: After Effects Mail List Content-Type: multipart/alternative; boundary="0000000000004371e3059c96b2fa" --0000000000004371e3059c96b2fa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E2=80=A6and a good answer, thanks!! On Monday, 20 January 2020, Nathan Shipley wrote: > At that point you=E2=80=99d 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=E2=80=99t have a =E2=80=9Cmemory=E2=80=9D as Dan Ebberts pu= ts 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=E2=80=99d want to build a physics system. > > Good question though! > On Mon, Jan 20, 2020 at 8:22 AM D wrote: > > =E2=80=A6I should say 'make the grey blocks collide with each other=E2=80= =99 as opposed to repel each other. > > On Monday, 20 January 2020, D wrote: >> Excellent Nathan. >> >> Is it possible with expressions to make the grey blocks repel each other too? (i=E2=80=99m not asking you to do it, I=E2=80=99m just interested whet= her it=E2=80=99s possible with expressions). >> >> Thanks. >> >> On Thursday, 16 January 2020, Cary Spenser wrote: >>> Nathan - >>> Really helpful to rocket my understanding of scripting. >>> Thanks! >>> Cary >>> On Wed, Jan 15, 2020 at 1:15 PM Nathan Shipley 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: >>> --0000000000004371e3059c96b2fa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =E2=80=A6and a good answer, thanks!!

On Monday, 20 January 2020, Nat= han Shipley <AE-List@media-mo= tion.tv> wrote:
> At that point you=E2=80=99d probably want to= just use something like the Newton plugin which is built for this kinda st= uff.=C2=A0 It would be a bad use of expressions, get complicated, and proba= bly bog down pretty quickly since expressions don=E2=80=99t have a =E2=80= =9Cmemory=E2=80=9D as Dan Ebberts puts it.=C2=A0 That is to say, they only = know what is going on in the current frame and you have to build in kinda s= low workarounds to deal with this; there are no persistent variables, which= you=E2=80=99d want to build a physics system.=C2=A0
>
> Good q= uestion though!
> On Mon, Jan 20, 2020 at 8:22 AM D <AE-List@media-motion.tv> wrote:
>= ;
> =E2=80=A6I should say 'make the grey blocks collide with each= other=E2=80=99 as opposed to repel each other.
>
> On Monday, = 20 January 2020, D <dow.hanson@g= mail.com> wrote:
>> Excellent Nathan.
>>
>&g= t; Is it possible with expressions to make the grey blocks repel each other= too? (i=E2=80=99m not asking you to do it, I=E2=80=99m just interested whe= ther it=E2=80=99s possible with expressions).
>>
>> Thank= s.
>>
>> On Thursday, 16 January 2020, Cary Spenser <<= a href=3D"mailto:AE-List@media-motion.tv">AE-List@media-motion.tv> w= rote:
>>> Nathan -
>>> Really helpful to rocket my = understanding of scripting.=C2=A0
>>> Thanks!
>>> C= ary
>>> On Wed, Jan 15, 2020 at 1:15 PM Nathan Shipley <AE-List@media-motion.tv> wrot= e:
>>>
>>> Henry,
>>> Here's someth= ing really basic I just whipped up that simply moves layers away from a nul= l.=C2=A0 It just pushes objects=C2=A0away from where the null is when they&= #39;re closer than the "Distance Threshold" control.=C2=A0 You ca= n 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 ti= nker further.=C2=A0 Expression pasted below as well:
>>> Here&#= 39;s a quick screencapture showing what it does:
>>> --0000000000004371e3059c96b2fa--