From: "rik bogusz" Received: from mr85p00im-ztdg06011201.me.com ([17.58.23.181] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7492541 for ae-list@media-motion.tv; Wed, 15 Jan 2020 21:23:48 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1579119826; bh=JvwHvFuodSFUP/SUcEY4Ge8jwCokFhp5jjkVEiPlyvQ=; h=From:To:Subject:Date:Message-ID:Content-Type; b=G7PCePFc0jmWHMVjbHacf7v4fOscTdunVlvyKVo3Vtl3tScDJaAO5nbYqn9b1Ehx5 3VzzpaHyI3Z56dMFbhOOOIW9G0aE6ghRmBTMGnh6GLvkWIwfO3foN/KHjrRwrF3xRj MEe9RXDspqyWa75+lKplE6lto/69YDLBVIE3Sh882t7z/Gewhhuzo20dHA4s8QVgza oWgHwUqb+ndeMXE+spdmdABlQtwljKWY0jxOeeijiWE6EayUnT3ixX86w0beV8jlNH 3wEAKJM1iLvp/Mvq1hIWehy/uO7wFqgaT6wlxbNXjW6jk/O9Rw6kWvs2rleelN7qn+ +0qispZOvZfUQ== Received: from MONOLITH (cpe-104-33-195-203.socal.res.rr.com [104.33.195.203]) by mr85p00im-ztdg06011201.me.com (Postfix) with ESMTPSA id 3800F4013EF for ; Wed, 15 Jan 2020 20:23:46 +0000 (UTC) Reply-To: To: "'After Effects Mail List'" References: In-Reply-To: Subject: RE: [AE] Repelling layers Date: Wed, 15 Jan 2020 12:23:44 -0800 Message-ID: <00f301d5cbe1$afd500f0$0f7f02d0$@mac.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00F4_01D5CB9E.A1B2F970" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJQ+/27fNhsFQZGr0clu35yO9Bdsqb1ykuw Content-language: en-us X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2020-01-15_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=666 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-2001150155 This is a multipart message in MIME format. ------=_NextPart_000_00F4_01D5CB9E.A1B2F970 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Yeah, Nathan!=20 =20 I often do text animations, and occasionally do something similar to = this. and to achieve it, I=E2=80=99ll have to do in Cinema4D. This = solution in ae will save some time in some cases. =20 Thanks!! =20 -Rik Bogusz =20 =20 From: After Effects Mail List =20 Sent: Wednesday, January 15, 2020 12:19 PM To: After Effects Mail List Subject: Re: [AE] Repelling layers =20 Nathan! That is about the coolest thing I've seen in a while. You win the day. = Thank you. I could roll this into all kinds of things. H =20 On 1/15/2020 1:15 PM, Nathan Shipley wrote: Henry,=20 =20 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." =20 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: =20 Here's a quick screencapture showing what it does: https://www.dropbox.com/s/97yymslvdmjgeez/MoveAwayDemo_01.mp4?dl=3D0 =20 And here's the .AEP: https://www.dropbox.com/s/8g3scef520fir3r/MoveAwayExpression_NS_01.aep?dl= =3D0 =20 Not fancy but maybe helpful? - Nathan =20 p =3D transform.position; nullPos =3D thisComp.layer("Parent And Controls").transform.position; distanceThreshold =3D thisComp.layer("Parent And = Controls").effect("Distance Threshold")("Slider"); moveAwayMult =3D thisComp.layer("Parent And Controls").effect("Move Away = Muliplier")("Slider"); distance =3D length(p, nullPos); if (distance < distanceThreshold) { distanceMult =3D (Math.log(distanceThreshold / distance)) * = moveAwayMult; delta =3D nullPos - p; nDelta =3D (normalize(delta)); newPos =3D p - nDelta * distanceMult; } else { p } =20 On Wed, Jan 15, 2020 at 9:13 AM henry birdseye > wrote: This is true. If I had any sort of budget at all this would be ideal. About a decade ago, ways of doing this abounded on the interwebz...=20 those links have since passed on. Character Animator has a physics=20 engine I may explore. On 1/15/2020 11:00 AM, Peter Lund wrote: > Hi, > > i gutes you need something like this. > > https://aescripts.com/newton/ > > a physic engine that helps you with the repelling and interaction. > > this is all I found under =E2=80=9Ephysic=E2=80=9C topic =E2=80=A6 > > https://aescripts.com/search/?q=3Dphysic > > hope this helps you > > Peter > >> Am 15.01.2020 um 14:40 schrieb henry birdseye = >: >> >> I'm trying to get some layers to be repelled by a passing object, the = links I've found for how to do this are years old and don't work = properly. >> >> Paul Tuersley's project no longer exists at = http://www.aenhancers.com/viewtopic.php?t=3D630 and that seems ideal for = what I need to do. >> >> Can anyone help me find a setup I can kind of plug right into. This, = of course, came as a last minute client request. >> >> HB >> >> >> +---End of message---+ >> To unsubscribe send any message to > > > +---End of message---+ > To unsubscribe send any message to > +---End of message---+ To unsubscribe send any message to > ------=_NextPart_000_00F4_01D5CB9E.A1B2F970 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Yeah, = Nathan!

 

I often do text animations, and occasionally do = something similar to this. =C2=A0and to achieve it, I=E2=80=99ll have to = do in Cinema4D. This solution in ae will save some time in some = cases.

 

Thanks!!

 

-Rik = Bogusz

 

 

From: After Effects Mail List = <AE-List@media-motion.tv>
Sent: Wednesday, January 15, = 2020 12:19 PM
To: After Effects Mail List = <AE-List@media-motion.tv>
Subject: Re: [AE] Repelling = layers

 

Nathan!

That = is about the coolest thing I've seen in a while. You win the day. Thank = you. I could roll this into all kinds of = things.

H

 

On 1/15/2020 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:

 

And here's the .AEP:

 

Not fancy but maybe = helpful?

 - = Nathan

 

p =3D = transform.position;
nullPos =3D thisComp.layer("Parent And = Controls").transform.position;
distanceThreshold =3D = thisComp.layer("Parent And Controls").effect("Distance = Threshold")("Slider");
moveAwayMult =3D = thisComp.layer("Parent And Controls").effect("Move Away = Muliplier")("Slider");

distance =3D length(p, = nullPos);

if (distance < distanceThreshold) {
    = distanceMult =3D (Math.log(distanceThreshold / distance)) * = moveAwayMult;
    delta =3D nullPos - p;
    = nDelta =3D (normalize(delta));
    newPos =3D p - nDelta * = distanceMult;
} else {
    = p
}

 

On = Wed, Jan 15, 2020 at 9:13 AM henry birdseye <AE-List@media-motion.tv> = wrote:

This is = true. If I had any sort of budget at all this would be = ideal.

About a decade ago, ways of doing this abounded on the = interwebz...
those links have since passed on. Character Animator = has a physics
engine I may explore.


On 1/15/2020 11:00 = AM, Peter Lund wrote:
> Hi,
>
> i gutes you need = something like this.
>
> https://aescripts.com/newton/
>
> a = physic engine that helps you with the repelling and = interaction.
>
> this is all I found under = =E2=80=9Ephysic=E2=80=9C topic =E2=80=A6
>
> https://aescripts.com/search/?q=3Dphysic
>> hope this helps you
>
> Peter
>
>> Am = 15.01.2020 um 14:40 schrieb henry birdseye <AE-List@media-motion.tv>:
>>
>>= ; I'm trying to get some layers to be repelled by a passing object, the = links I've found for how to do this are years old and don't work = properly.
>>
>> Paul Tuersley's project no longer = exists at http://www.aenhancers.com/viewtopic.php?t=3D630 = and that seems ideal for what I need to do.
>>
>> Can = anyone help me find a setup I can kind of plug right into. This, of = course, came as a last minute client request.
>>
>> = HB
>>
>>
>> +---End of = message---+
>> To unsubscribe send any message to <ae-list-off@media-motion.tv>
>
> = +---End of message---+
> To unsubscribe send any message to <ae-list-off@media-motion.tv>

+---End of = message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>

------=_NextPart_000_00F4_01D5CB9E.A1B2F970--