Posts: 1,976
Threads: 82
Joined: Jun 2017
(11-15-2018, 08:22 PM)Saurabh Wrote: Yes you are right. I am using Math.abs() on all handles in javascript.
Issue found then. Keep the negative signs of the handles when there is one, and your spline should be exported correctly
(11-15-2018, 08:22 PM)Saurabh Wrote: Sorry. I have moved on from the import process to creating the game art. It's taking a lot of time. Will get back to this later.
No problem. If and when needed, please let me know.
(11-15-2018, 08:22 PM)Saurabh Wrote: JSON file is attached. It's in the SimpleSpline.zip file.
I was meaning the JSON as exported by the original exporter, without any modification related to Curvy. But it's not important anymore.
Please consider leaving a
review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Posts: 10
Threads: 2
Joined: Sep 2019
I did a simple screenshot from Adobe Illustrator. Looks like node points are messed up with control points.
Posts: 1,976
Threads: 82
Joined: Jun 2017
Hi,
Sorry I am not familiar with Adobe Illustrator. Can you explain to me what is the problem and what is the expected result?
Thanks and have a nice day
Please consider leaving a
review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Posts: 10
Threads: 2
Joined: Sep 2019
Hi,
I am not the author of the original question.
I just noticed that you asked the author to make a screenshot with control points enabled to help investigate his original problem.
So I did it and I think that the AI export script from the author is messing node points with control points positions. That's all.
Posts: 1,976
Threads: 82
Joined: Jun 2017
Thanks for your help.
The screenshot is not really needed anymore because I am pretty sure I found what the issue is:
https://forum.curvyeditor.com/thread-612-post-2191.html#pid2191
Saurabh was forcing all handles coordinates to have a positive value by using Math.abs, which he/she shouldn't.
Please consider leaving a
review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.