From: "scott.aelist" Received: from mail-ua1-f43.google.com ([209.85.222.43] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 7492528 for AE-List@media-motion.tv; Wed, 15 Jan 2020 19:25:55 +0100 Received: by mail-ua1-f43.google.com with SMTP id z24so6634482uam.7 for ; Wed, 15 Jan 2020 10:25:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=ynETJZ/02UgyZVpdmNKwaflwzad8ONIa1ytgLn8Nd+o=; b=ibOu5N3Qc36YOun2mtl/fxSPc5eCrixAUGAOTu+V8nnGPuUQ2hKZyMfq5S4ei8cUE/ fzsb+VLjED4EKla8wT78ppjYZMelUAGTURF04wjhvu6IMclcG2JY1PImeE3KKLEEfFXO yZz4Kx04rOfzb7sJs41OYttl+zhjNe29d/eORFDgAHbhpImfMl2Jrz03KFneSthU3Ts7 zTzucaMAJjPyvu/SCY4L8KeCeeIRygzCcHEoAlj5132P0Qe87lXdgy/ofa0Y6b4MBZdV SAzFbnJxfjpQahiWorlW4/Sz2f3s9d9O9ckGt4PsJI3XdzxFYsFNh1aEmUOWADc/ToUY rHPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=ynETJZ/02UgyZVpdmNKwaflwzad8ONIa1ytgLn8Nd+o=; b=iStTe5RfOQkSDlA8l8pBqJ3XPD7XZdwEYpq8Bypf/bvjZHoqYWA6FYb1KI/0kRWldE CXWkZ58FA3AmJEB4Twweu97e+VP0K5EmcVZCzaUHPhBfe9kMgPtfDV/0EwE3yGOWVeiZ e3cgbxEzz80TgZNVc6duiZOrYMP3ZWEgTBwEMpVR6EqQX78N+GcJx+wQKbt9nPR0dcDb oo92gF7BgU46RgExhisbArlnS2WTx93CEEdzYETl6Fmy44dLYRERQQFelOIsG4vcn0B8 GG3BXWH18QDKepPkjDwuMO5V+Ok7Ddfeb2x6PEV4vZ1Rpn6Pu/hX+NDsjEN5iKs76mav Zmow== X-Gm-Message-State: APjAAAXFZpLK4Ud1mY2GmGkiPLlKvBjH8pcSea10tFhi4ZBz2COBvfbr dzRJ/w5+CoIeX93ImOFFxAQlCbMsPQZmL+8uguHD/Q== X-Google-Smtp-Source: APXvYqxENBR/neYIcKpglPu3FjuOO6BMn71fnu3rkK7c9cLfPKcmJvZVL9OZMNUIGqcS0z+UFkJt3iJa5ssB+dksMXI= X-Received: by 2002:ab0:2a93:: with SMTP id h19mr15130142uar.27.1579112753967; Wed, 15 Jan 2020 10:25:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 15 Jan 2020 10:25:17 -0800 Message-ID: Subject: Re: [AE] Repelling layers To: After Effects Mail List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is pretty fancy to me. Thanks for sharing Nathan : ) On Wed, Jan 15, 2020 at 10:15 AM Nathan Shipley w= rote: > > 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 lay= ers 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: > https://www.dropbox.com/s/97yymslvdmjgeez/MoveAwayDemo_01.mp4?dl=3D0 > > And here's the .AEP: > https://www.dropbox.com/s/8g3scef520fir3r/MoveAwayExpression_NS_01.aep?dl= =3D0 > > 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("Dista= nce 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)) * moveAwayM= ult; > 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 = 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 : >> >> >> >> 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