ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: animate tentacles using normals from a path, create path expression & math.sin expression

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Alex Printz
Re: animate tentacles using normals from a path, create path expression & math.sin expression
on Feb 19, 2019 at 5:54:53 pm

I don't think you could do it easily; sin/cos are not native properties to bezier curves. To combine them you need to add additional vector points to your splines and then adjust their positions based on that.

You would need to define a much larger amount of points along the spline, calculate the total length of the spline between the points, calculate out a period for the sin wave relative to the total length of the spline, check the point positions along the spline, calculate the sin value relative to the point on the spline the period and the animated time, multiply that by an intensity vector, and then factor that into your normal calculation plus the position of the spline points.

You could also try to figure out how to calculate the controller spline and it's in/out tangents to do this, but it's too much to figure out off the top of my head.

Alex Printz
Mograph Designer


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]