Engy's Super Curve : New script to draw spline by points

Hi all. I’ve created special script to draw open and closed curved splines (also with jaggies removal).

To use it create a layer with points of three types:

  1. Start point must be in shape of X i.e. one center pixel and at least four pixels in diagonal directions
  2. Other points may be of any other shape, but overall circles will be best in my opinion
  3. Remove pixels from center of your point shape to make a sharp corner

Use same color for all points until you need to redirect your spline. This script searches for next nearest point of same color first, so there may be some funny situations, so be aware.

Then run the script (eg_supercurve.lua) and select or enter appropriate KLen and DMax curvature parameters (default KLen=1/4, DMax=25, KLen is proportion of segment length for curving, DMax is maximum distance in pixels for curving when KLen used for very long segments).

Consider these images as illustration of source and results:
supercurve_5_1234

And the link to the script itself: eg_supercurve.zip - Google Drive

꧁Enginya꧂

9 Likes

Another example with KLen=1/2 and DMax=25 with jaggy-like spline like some land borders…

landlike1c

this is amazing!
i really don’t like current curve tool, so i’m going to use this a lot.

1 Like

Nice! I like the use of filled points to toggle sharp corners.

On my system it does not seem to close the curve though (Aseprite v1.2.30)

image

Did you toggle [x] Closed spline checkbox?

1 Like

I did not check the box, that was my mistake. Excellent!

1 Like

While I have no use for this tool, I want to say how cool this is! Such a clever interface with the blobs and different colours.

1 Like

I planned to use this tool to make animated contour characters in relatively big resolutions like 320x240. While it could be used for such thing, there will be problems with moving points and distances between them.

So I still want those vector/path layers in 1.4 for Another World-like animations and references. But good point-to-point-to-point spline curve tool like I implemented here would be great too.

1 Like

I’ll give it a try to confirm but I believe you just saved me hours of work of making smooth smear frames for my sword attacks (I suck at drawing clean curves) so thank you in advance.

2 Likes

I wanted to say thanks for this brilliant script. I’ve been using it and never knew this was something I needed.

1 Like

I love this so much!

1 Like

I can’t quite get the hang of this script. When it reaches the first green circle, it then decides to jump down to the bottom green circle instead of moving to the green circle right next to it…

You X’s shape is 2x2 which is not supported. It should be 1x1 pixel with diagonal pixels around it.

Because of that script starts from topmost point, which is “second” green point and then goes clockwise, jumps to last “first” green point, then continues with hollow square and counter-clockwise, finishing at incorrect X point. cycling back to “second” green point. Whoops.