Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
aashby13

GSAP 3 - replacement for BezierPlugin.bezierThrough()?

Recommended Posts

I'm converting a project using gsap 2 to gsap 3. BezierPlugin.bezierThrough() is used, but I don't see a compatible method in the MotionPathPlugin. What would I use to replace that function?

Link to post
Share on other sites

Hey aashby13 and welcome to the GreenSock forums! 

 

I believe that MotionPathPlugin.arrayToRawPath() is a replacement for bezierThrough(). I use it in a demo in this thread:

Sorry about the state of MotionPath docs right now. It's high on our to do list. 

  • Like 1
Link to post
Share on other sites

Hi Zach, thanks for the reply and link. 

 

MotionPathPlugin.rawPathToString(MotionPathPlugin.arrayToRawPath(xyObjArray, {curviness: 1.2})) was just what I was looking for. I had to dive into the source code to see what argument options I had.

  • Like 1
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×