HS_Shape V10
Moderators: Víctor Paredes, Belgarath, slowtiger
- hayasidist
- Posts: 3978
- Joined: Wed Feb 16, 2011 11:12 am
- Location: Kent, England
HS_Shape V10
It's here: https://mohoscripts.com/script/hs_shape (I hope I've managed to navigate that site's upload process correctly!!)
and also here: https://www.mediafire.com/file/d2ecsb72 ... 0.zip/file
The .zip has an install folder and a readme.
What’s new in this version (since version 9.67)?
================================================
Totally re-architected. This version is the foundation for the next revision which is intended to allow user-written sub-tools to be accommodated.
Added the “additional functions” for help and re-set subtools (see below).
Enabled the “ratio / scale” (floating point input) so that it can be changed (and thus change the drawn shape) immediately after the shape is drawn.
A keystroke handler is introduced. Ctrl-key directs the keystroke to the factory SelectPoints keystroke handler (this only services “delete selected points” at present); key (or alt-key or shift-key) is handled within this tool – again only “delete selected points” is currently supported. This difference is that the factory tool will delete all selected points; this tool will only delete points from the last shape created by this tool if it is “editable”.
The main set of drawing tools is essentially unchanged from V967 (Moho 13.5.3) from 07 April 2022.
There is a new (version 1.04) sub-tool to draw card suit shapes. This is provided as a separate file in the Utility folder.
==
The “additional functions” button (to the left of the sub-tool buttons) changes the behaviour of the sub-tool selection buttons.
Clicking (or alt-clicking) the button cycles forwards (or backwards) through the options:
>>> O – normal operation of the sub-tool
>>> R – reset the sub-tool’s options (and leave the sub-tool active)
>>> ? – print the sub-tool “help/about” message (and leave the sub-tool active)
==
Editing a shape
================
Having drawn a shape using a sub-tool it is possible to change the detail of the shape by, optionally, changing a numeric input field (other than those that directly or indirectly define the number of points in the shape) and then holding down the control key and simultaneously clicking and dragging the mouse. Once the edit operation is in progress the control key may be released if its shape modifying action is not required. Note that the shift and alt keys remain set as they were when the shape was created.
Also, where the sub-tool uses the floating point input to control scale / ratio / roundness (etc) this value can be modified immediately after the shape has been drawn to change the drawn shape.
If a shape is created on frame 0 (e.g. with the “create on frame 0” checkbox checked) then modified on a different frame (with the “create on frame 0” checkbox unchecked) the shape will be animated.
This video expressly shows the round-cornered rectangle, and how it can be edited and animated. The same is available for any of the subtools that use the "floating point" input field (all the card suits, swiss cross, parabola, multi-line, sine, star, annulus, (vector) bone shape)
===
Problems / issues / requests -- please say!
and also here: https://www.mediafire.com/file/d2ecsb72 ... 0.zip/file
The .zip has an install folder and a readme.
What’s new in this version (since version 9.67)?
================================================
Totally re-architected. This version is the foundation for the next revision which is intended to allow user-written sub-tools to be accommodated.
Added the “additional functions” for help and re-set subtools (see below).
Enabled the “ratio / scale” (floating point input) so that it can be changed (and thus change the drawn shape) immediately after the shape is drawn.
A keystroke handler is introduced. Ctrl-key directs the keystroke to the factory SelectPoints keystroke handler (this only services “delete selected points” at present); key (or alt-key or shift-key) is handled within this tool – again only “delete selected points” is currently supported. This difference is that the factory tool will delete all selected points; this tool will only delete points from the last shape created by this tool if it is “editable”.
The main set of drawing tools is essentially unchanged from V967 (Moho 13.5.3) from 07 April 2022.
There is a new (version 1.04) sub-tool to draw card suit shapes. This is provided as a separate file in the Utility folder.
==
The “additional functions” button (to the left of the sub-tool buttons) changes the behaviour of the sub-tool selection buttons.
Clicking (or alt-clicking) the button cycles forwards (or backwards) through the options:
>>> O – normal operation of the sub-tool
>>> R – reset the sub-tool’s options (and leave the sub-tool active)
>>> ? – print the sub-tool “help/about” message (and leave the sub-tool active)
==
Editing a shape
================
Having drawn a shape using a sub-tool it is possible to change the detail of the shape by, optionally, changing a numeric input field (other than those that directly or indirectly define the number of points in the shape) and then holding down the control key and simultaneously clicking and dragging the mouse. Once the edit operation is in progress the control key may be released if its shape modifying action is not required. Note that the shift and alt keys remain set as they were when the shape was created.
Also, where the sub-tool uses the floating point input to control scale / ratio / roundness (etc) this value can be modified immediately after the shape has been drawn to change the drawn shape.
If a shape is created on frame 0 (e.g. with the “create on frame 0” checkbox checked) then modified on a different frame (with the “create on frame 0” checkbox unchecked) the shape will be animated.
This video expressly shows the round-cornered rectangle, and how it can be edited and animated. The same is available for any of the subtools that use the "floating point" input field (all the card suits, swiss cross, parabola, multi-line, sine, star, annulus, (vector) bone shape)
===
Problems / issues / requests -- please say!
- synthsin75
- Posts: 10441
- Joined: Mon Jan 14, 2008 2:20 pm
- Location: Oklahoma
- Contact:
Re: HS_Shape V10
Great new features, Paul!
Personally, I always download from mohoscripts as simple ZIP.
In that case, it helps if any utility files are named to indicate that's where they go.
So I just grabbed your mediafire one instead.
Personally, I always download from mohoscripts as simple ZIP.
In that case, it helps if any utility files are named to indicate that's where they go.
So I just grabbed your mediafire one instead.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- hayasidist
- Posts: 3978
- Joined: Wed Feb 16, 2011 11:12 am
- Location: Kent, England
Re: HS_Shape V10
Version 10.01 is now available. It is a minor bug fix ... a Lua console message is generated when creating a path that does not result in a Moho shape being created (the path is correctly created -- the error message is an annoyance only).
Links are as in the original post.
Any problems or issues, please let me know.
Links are as in the original post.
Any problems or issues, please let me know.
Re: HS_Shape V10
Cool! Thanks Paul...will download and install today and let you know how it goes.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!
D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
- martin_mrt
- Posts: 62
- Joined: Mon Mar 25, 2024 7:09 am
Re: HS_Shape V10
Hello there,
Just found this awesome script after not being able to quickly draw a six sided polygon.
Everything works but I get this error message on startup: "Moho Pro\Scripts\Tool\hs_shape.lua:466: attempt to call a nil value (method 'identify')"
Using Moho 14.4.
Thanks for making this tool! Its an awesome addition to the Shape Drawing Tool
Just found this awesome script after not being able to quickly draw a six sided polygon.
Everything works but I get this error message on startup: "Moho Pro\Scripts\Tool\hs_shape.lua:466: attempt to call a nil value (method 'identify')"
Using Moho 14.4.
Thanks for making this tool! Its an awesome addition to the Shape Drawing Tool
- hayasidist
- Posts: 3978
- Joined: Wed Feb 16, 2011 11:12 am
- Location: Kent, England
Re: HS_Shape V10
can you check the tool version number please (just hover over the tool icon) - latest is 10.20; also the error message -- there isn't a call to an Identify method on 466.martin_mrt wrote: ↑Wed Mar 18, 2026 2:27 am Hello there,
Just found this awesome script after not being able to quickly draw a six sided polygon.
Everything works but I get this error message on startup: "Moho Pro\Scripts\Tool\hs_shape.lua:466: attempt to call a nil value (method 'identify')"
Using Moho 14.4.
Thanks for making this tool! Its an awesome addition to the Shape Drawing Tool
Maybe 446? But that call creates the tool bar - and if that fails, then there won't be a tool bar???
- martin_mrt
- Posts: 62
- Joined: Mon Mar 25, 2024 7:09 am
Re: HS_Shape V10
10.20
yes 446. you are right.
yes 446. you are right.
Re: HS_Shape V10
@martin_mrt, Just chiming in to say it's working fine here, version 10.20 in Moho 14.4 for Windows; no errors.
So, it should be working. There are a lot of files for the script, so make sure they're all installed correctly.
If that's not it, maybe a conflict with another script? Try setting up a clean Custom Content Folder and installing only HS Shape there to test.
So, it should be working. There are a lot of files for the script, so make sure they're all installed correctly.
If that's not it, maybe a conflict with another script? Try setting up a clean Custom Content Folder and installing only HS Shape there to test.
Animations, Tutorials, and Cats (Oh, My!) Little Green Dog Channel on YouTube!
D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
D.R. Greenlaw
Artist/Partner - Little Green Dog
Little Green Dog Channel | Greenlaw's Demo Reel Channel
- hayasidist
- Posts: 3978
- Joined: Wed Feb 16, 2011 11:12 am
- Location: Kent, England
Re: HS_Shape V10
are all the subtool icons displayed? (https://mohoscripts.com/script/hs_shape - scroll down to the line Subfolder: hs_shape_icons -- you should have all of those except the "!T" which is a test icon) If there are some missing, that starts to suggest that the source file is damaged - or (as Greenlaw hints at) maybe you have an older version installed as well????? (this is the first report of this issue - the "Identify" method is central to the way the tool knows which subtools it has)