From: "TIM THIESSEN" Received: from resqmta-po-07v.sys.comcast.net ([96.114.154.166] verified) by media-motion.tv (CommuniGate Pro SMTP 6.1.0) with ESMTPS id 6454055 for ae-list@media-motion.tv; Tue, 22 May 2018 23:15:37 +0200 Received: from resomta-po-06v.sys.comcast.net ([96.114.154.230]) by resqmta-po-07v.sys.comcast.net with ESMTP id LDoiftIs46gX8LEjcfRAxC; Tue, 22 May 2018 21:22:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1527024140; bh=n2vUmYjl4bD0IZ4c8WYCu3NyRU/I9qamuZozS9KraM4=; h=Received:Received:Date:From:Reply-To:To:Message-ID:Subject: MIME-Version:Content-Type; b=C9qIlion97pkaAZ6z/hX5ZZqHXC1r12qQbesjshIiJvpC+gkd4jV0VpkkDOXE0+XI h3pcYQwsV9hxRXjiqxmI+2+dRDQCsVTcsEF/0zmDvmPdGfQzRwhjnwumGvc+yMT2SM 7AogvqGTNg6fxr8a3oVRdeV+LmX7qBxsVFgzdzZ+xO2xcNg0GbAeSefpWKknw3qwxc 3dpW+NwmNz7n73EbdV03MG/szWJxmq7tIc8pbnLoagCvSnAWNSjsP3AoMiDv+g/0qu Z/RKu5nhb7TH8s7c0+X80ZtDaHkv2KO62vjxUcvBCUp/YpbTAk40rQRkDnccP9QfoD wbJf/3sGYf9FQ== Received: from oxapp-hoc-04o.email.comcast.net ([96.118.240.225]) by resomta-po-06v.sys.comcast.net with ESMTPS id LEjbfm5dGPtfJLEjbf6tqC; Tue, 22 May 2018 21:22:20 +0000 Date: Tue, 22 May 2018 14:22:19 -0700 (PDT) Reply-To: TIM THIESSEN To: After Effects Mail List Message-ID: <1019041408.391373.1527024139616@connect.xfinity.com> In-Reply-To: References: Subject: Re: [AE] inTangents/outTangents Math MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_391372_1663228945.1527024139609" X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev12 X-Originating-IP: ::ffff:107.1.199.10 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4wfDEvwYt5x5iJjZC91D07Z5ZHajhgtti8OjuDKfE3RQ78VNpmUSq9PHSj9t0Zd9ct3kGE4eyaMAQi3McZmbFJZxuWCnPqhEvn/auZEE/qtUoyqySatU8w 3Bfij5HWYPbw54knNhWsDb70Ib8SPmF0PdwwNZ32cHOW9tD1oKEfNt+xDs5KzqYpGXnviZL8VZvdXTj5E0MkAjBpP1HPg5z8ftA= ------=_Part_391372_1663228945.1527024139609 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable AE 2018 has been great for this allowing me to set up different shapes to c= heck the math - for circles, I've found that the number you need to divide = the vector difference from is 3.6213. Thank again Dan for pointing me in th= e right direction. Tim T > On May 21, 2018 at 12:54 PM Dan Ebberts wrote: >=20 >=20 > Just from looking at how AE does it, the math doesn=E2=80=99t seem al= l that complex. For all the points except the first and last, it looks like= you just subtract the previous point from the next point and divide that v= ector by 6 to get the out tangent of the current point. Then invert that fo= r the in tangent. >=20 > =20 >=20 > If the path is closed, for the first and last point you wrap around. = So, for the first point you would subtract the last point from the 2nd poin= t, divide by 6, etc. >=20 > =20 >=20 > If the path is open, for the first point you would subtract the first= point from the second point and divide by 6 for the out tangent and use [0= ,0] for the in tangent. >=20 > =20 >=20 > Do something similar for the last point. >=20 > =20 >=20 > =20 >=20 > Dan >=20 > =20 >=20 > From: After Effects Mail List > Sent: Monday, May 21, 2018 11:02 AM > To: After Effects Mail List > Subject: Re: [AE] inTangents/outTangents Math >=20 > =20 >=20 > Thanks Chris - there is a ton of info on the web about bezier curves = and I am getting what the behind the scenes mechanism is doing - but maybe = my real question is if I create a spline via a script I want to know how to= calculate the in and out tangents to make a spline that mimics the auto be= zier path. Is that even possible? >=20 > =20 >=20 > Thanks >=20 > Tim T >=20 > > >=20 > > On May 20, 2018 at 1:22 AM Chris Zwar wrote: > >=20 > > Here=E2=80=99s a starting point. > >=20 > > =20 > >=20 > > http://jamie-wong.com/post/bezier-curves/ > >=20 > > =20 > >=20 > >=20 > >=20 > > > > >=20 > > > On 20 May 2018, at 2:39 pm, TIM THIESSEN wrote: > > >=20 > > > =20 > > >=20 > > > Can any one direct me to where I can read about calculati= ng the inTangent/outTangents of a path - I want to build a curved path (lik= e auto bezier) but I don't know the math to figure out the in/out Tangents. > > >=20 > > > =20 > > >=20 > > > Thank > > >=20 > > > Tim T > > >=20 > > > > >=20 > > =20 > >=20 > > >=20 ------=_Part_391372_1663228945.1527024139609 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

AE 2018 has been great for this allowing= me to set up different shapes to check the math - for circles, I've fo= und that the number you need to divide the vector difference from is 3.6213= . Thank again Dan for pointing me in the right direction.


Tim T

On May 21, 2018 at 12:54 PM Dan Ebberts = <AE-List@media-motion.tv> wrote:

Just from looking at ho= w AE does it, the math doesn’t seem all that complex. For all the poi= nts except the first and last, it looks like you just subtract the previous= point from the next point and divide that vector by 6 to get the out tange= nt of the current point. Then invert that for the in tangent.

 

If the path is closed, for the first and last point you wrap around. So, f= or the first point you would subtract the last point from the 2nd point, divide by 6, etc.

 

If the path is open, for the first p= oint you would subtract the first point from the second point and divide by= 6 for the out tangent and use [0,0] for the in tangent.

 

Do som= ething similar for the last point.

=  

 

Dan

 

From: After Effects Mail List <AE-List@media-motion.tv>
Se= nt: Monday, May 21, 2018 11:02 AM
To: After Ef= fects Mail List <AE-List@media-motion.tv>
Subject: Re: [AE] inTangents/outTangents Math

 

Thanks Chris - there is a ton o= f info on the web about bezier curves and I am getting what the behind the = scenes mechanism is doing - but maybe my real question is if I create a spl= ine via a script I want to know how to calculate the in and out tangents to= make a spline that mimics the auto bezier path. Is that even possible?

 

Thanks

Tim T

On May 20, 2018 at 1:22 AM Chri= s Zwar <AE-List@media-motion= .tv> wrote:

Here’s a starting point.

 

http://ja= mie-wong.com/post/bezier-curves/

 



On 20 May 2018, at 2:39 p= m, TIM THIESSEN <AE-List@med= ia-motion.tv> wrote:

=  

= Can any one direct me to where I can read about calculating th= e inTangent/outTangents of a path - I want to build a curved path (like aut= o bezier) but I don't know the math to figure out the in/out Tangents.<= /span>

 

= Thank

Tim T

 

=20 ------=_Part_391372_1663228945.1527024139609--