FORUMS: list search recent posts

How to Bezier Path with no keyframes ?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shai Benshoshan
How to Bezier Path with no keyframes ?
on Jan 7, 2019 at 9:38:50 am

Using the powerful ' Create nulls from paths ' script, I am writing a script that reads the Path from an external XML file.
The Path has no keyframes, but the points auto-created as linear :




How can I convert the path to bezier by script? or expression?
It can be done manually > select the path > alt+shift +click to convert the points to bezier :
Can AE do it automatically?


Thanks
Shai


Return to posts index

Oleg Pirogov
Re: How to Bezier Path with no keyframes ?
on Jan 7, 2019 at 10:30:56 am

Since CC 18 you can directly access path nodes and their tangents in a manner like this:

comp("Comp").layer("Shape Layer").content("Shape").content("Path").path.points()[i] = [666, 666]
comp("Comp").layer("Shape Layer").content("Shape").content("Path").path.inTangents()[i] = [1, 0]
comp("Comp").layer("Shape Layer").content("Shape").content("Path").path.outTangents()[i] = [0,1]

Those "linear" nodes of yours are nodes with no tangent handles i.e. with In Tangent and Out Tangent both equal [0,0]. Changing those to something different than [0,0] will give you a Bezier curve.

Hope this helps you one way or another.


Return to posts index

Shai Benshoshan
Re: How to Bezier Path with no keyframes ?
on Jan 7, 2019 at 4:55:13 pm

Thank you Oleg <:]

I'll try that ;
So ill need to know what is the next point is to figure out the direction and value of those tangents.
Since the path is created automatically

tnx
Shai


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]