Curvature tool with numerical display.
Posted: Mon Nov 15, 2004 4:47 am
AcouSvnt asked for it, and it's a handy thing, so here it is. I added a numerical display to the tool to let you know exactly what the curvature is on any point. Even if you have multiple points selected, you can find the curvature of any particular point by clicking near it. Also, you can modify the curvature by entering the value in the number box. This works for single and multiple points. While dragging will still progressively add or subtract curvature from each selected point, entering a number will set all selected points to the same curvature.
There were a few other things I did. First, I upped the maximum amount of curvature that you could give a point while dragging. It was set to .667, but I kicked it up to 3.0. If you go really high with the number, curves will start curling around themselves and doing all sorts of strange things, but it might be handy for some special purposes. When you enter a number, you can make it any ol' thing you want, and things can get really wierd. Your choice. For that matter, you can enter negative curvature values if you felt like it, but that goes south immediately and I won't guarantee that it won't crash Moho, or make you're file unreadable, or any other sort of evil.
Also, <ALT> clicking will deselect all points if you had multiple points selected. <CTRL> click will select all points on the layer. The point group dropdown works as usual.
I made up 2 files. The first:
SF_Curvature.zip
is to use as a separate tool.
the second:
lm_curvature.lua
is for using as a straight replacement for the default Curvature tool script. It seems just as stable as you'd like, but I'd still make a backup of the original.
--Brian
There were a few other things I did. First, I upped the maximum amount of curvature that you could give a point while dragging. It was set to .667, but I kicked it up to 3.0. If you go really high with the number, curves will start curling around themselves and doing all sorts of strange things, but it might be handy for some special purposes. When you enter a number, you can make it any ol' thing you want, and things can get really wierd. Your choice. For that matter, you can enter negative curvature values if you felt like it, but that goes south immediately and I won't guarantee that it won't crash Moho, or make you're file unreadable, or any other sort of evil.
Also, <ALT> clicking will deselect all points if you had multiple points selected. <CTRL> click will select all points on the layer. The point group dropdown works as usual.
I made up 2 files. The first:
SF_Curvature.zip
is to use as a separate tool.
the second:
lm_curvature.lua
is for using as a straight replacement for the default Curvature tool script. It seems just as stable as you'd like, but I'd still make a backup of the original.
--Brian