HS Shape - drawing tools new version (V6.02)

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
hayasidist
Posts: 3849
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

HS Shape - drawing tools new version (V6.02)

Post by hayasidist »

A new version of my drawing tools can be found via this link: https://www.mediafire.com/?mctcyska24zcq87


(Previous main versions were described here viewtopic.php?f=12&t=19526 and here http://www.kelleytown.com/forum/animato ... IC_ID=1420)

There are now 11 subtools, the latest addition is "parabola"

Circle Segment
Oval
Round Cornered Rectangle
Annulus
Polygon
Right-angled triangle
Star
Multi-point line
Sine
Parabola
Grid.

as ever, please let me know of any errors, problems or enhancement requests.
User avatar
707dragon707
Posts: 46
Joined: Sat May 10, 2014 1:09 am

Re: HS Shape - drawing tools new version (V6.02)

Post by 707dragon707 »

If you could add the arrow and and spiral shape like the original shape tool. A preview window similar to fazeks polygon tool would also be great. If you made that tool,it would be able to replace both the lm. shape tool and the fazek polygon tool and save space. :mrgreen:
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Re: HS Shape - drawing tools new version (V6.02)

Post by ulrik »

Thanks a lot! :D
User avatar
hayasidist
Posts: 3849
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: HS Shape - drawing tools new version (V6.02)

Post by hayasidist »

707dragon707 wrote:If you could add the arrow and and spiral shape like the original shape tool. A preview window similar to fazeks polygon tool would also be great. ..
yeah - I can see why those changes would be useful... I had originaly planned this tool to add to - not replace - the others. I don't have a direct equivalent to the lm_ rectangle and triangle; and my oval is slightly different from the lm_ one. So to enable anyone to ditch the lm_ shape tool I'd need to provide those as well.

It's going to get crowded along the tool's control bar... and preview may need a fairly significant change to the internal design / code structure of the tool - but I had been thinking about restructuring to increase efficiency (run time and ease of maintenance).

I'll have a think about the best approach to all that - along with including a few other shapes that are on the list.

But don't hold your breath ... think in terms of "along with AS11" whenever that might be.

Thanks for the suggestions!
User avatar
707dragon707
Posts: 46
Joined: Sat May 10, 2014 1:09 am

Re: HS Shape - drawing tools new version (V6.02)

Post by 707dragon707 »

hayasidist wrote:
707dragon707 wrote:If you could add the arrow and and spiral shape like the original shape tool. A preview window similar to fazeks polygon tool would also be great. ..
yeah - I can see why those changes would be useful... I had originaly planned this tool to add to - not replace - the others. I don't have a direct equivalent to the lm_ rectangle and triangle; and my oval is slightly different from the lm_ one. So to enable anyone to ditch the lm_ shape tool I'd need to provide those as well.
The lm_ trangle and rectangle can be acheived with your polygon tool by setting the sides option to 3 for the triangle and 4 for the rectangle.
And with the oval tool couldent you just take the annulus and somehow just subtract the middle points since if it werent for them the annulus would be like the lm_oval.
User avatar
hayasidist
Posts: 3849
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: HS Shape - drawing tools new version (V6.02)

Post by hayasidist »

see what you mean about rectangle and triangle - the behaviours are subtly different but probably irrelevant from the view of the artist; and lm_ oval has different point curvatures from the 4 point oval you can get from my tool and also from the points in the "squashy/stretchy" circle in annulus. Agreeing with you, it's a breeze for someone just to delete the inner points, and it's easy to "fix" curvature differences with the point curvature tool. But that's a bit more work and those extra keystrokes to set the number of sides or delete and re-shape points can be irritating to some folks where they need the highest degree of keyboard / mouse / touchpad use optimisation.

However just adding a few more shape sub-tools is very trivial compared to providing a preview pane... the preview pane changes the UI quite dramatically as, in effect, the "draft" shape gets drawn in the preview mesh then committed (copied or re-drawn) to the layer mesh. The "out-of the box" scripts/draw/polygon tool doesn't have placement and sizing built into the tool... again, not a huge problem because it's simple for the artist to shift and scale the output, but it does add to the ergonomic burden.

I'm not wholly convinced that preview adds a lot when drawing shapes such as rectangle, but I can really see the value of preview in such as round-cornered rectangle, annulus and star etc where, with just the numeric value of radius ratios, it's hard to visualise the actual shape - so you can end up wasting time and keystrokes grabbing and resizing "half" the points in the shape.

In short, I'm not disagreeing with your suggestion - it's a very good one and it's really helpful to hear what people think... but it's not something I can whisk up overnight. So it's on the list - target delivery is "along with AS11".

(Oh and BTW, there was a V7 back in March 2014 that added "Swiss cross" to the shapes available: http://www.mediafire.com/download/1ghcz ... peV700.zip )
User avatar
707dragon707
Posts: 46
Joined: Sat May 10, 2014 1:09 am

Re: HS Shape - drawing tools new version (V6.02)

Post by 707dragon707 »

707dragon707 wrote:And with the oval tool couldent you just take the annulus and somehow just subtract the middle points since if it werent for them the annulus would be like the lm_oval.
hayasidist wrote: it's a breeze for someone just to delete the inner points
Woops i actually meant within the script. sorry i realize i wasen't being that specific.
Thanks for the new shape too.
Oh and im just giving you more ideas but cant you put the corner roundness option that you have in your round corner rectangle and put it into your polygon with the the option of 0 so that you could round corners or reguler,which if you could would save space on your toolbar as well.
Post Reply