lm_freehand in 11.2 - DrawToolSizeCircle method error

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

lm_freehand in 11.2 - DrawToolSizeCircle method error

Post by Stan »

This should have been posted in the bug forum, but I'm not sure if the officials even read that forum anymore.
Just installed 11.2 and performed an update (11.2.1_18868). First, I was a little surprised that the purchase version is not the most current one. Second, I was surprised that the lm_freehand tool does nothing but throws a lua error (before and after the update):

Image

Windows 7, 64 bit, the error is thrown in both 64 and 32 version. Is it just me or that's something that everybody should be aware of? I tried to search the forum, but no results were found. If you search for "DrawToolSizeCircle" you get a message that
"The following words in your search query were ignored because they are too common words: drawtoolsizecircle"
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: lm_freehand in 11.2 - DrawToolSizeCircle method error

Post by synthsin75 »

First I've heard of this problem. Have you tried altering the freehand tool's options before using it? Could be that some tool preference just hasn't been initialized. Just a guess.
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: lm_freehand in 11.2 - DrawToolSizeCircle method error

Post by Stan »

Hmn, if I disable the Auto-Stroke option, then the error is not thrown. However, if I enable it again, the error comes back.
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: lm_freehand in 11.2 - DrawToolSizeCircle method error

Post by synthsin75 »

Okay, I figured out a way to duplicate the problem. If you have a file named lm_utilities in your custom content folder>scripts>utility location, it is overriding the default LM utilities. This is why people should never use the LM prefix. You probably have an older utility file that does not contain the function the freehand tool is looking for.
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: lm_freehand in 11.2 - DrawToolSizeCircle method error

Post by Stan »

Removing that file fixed the problem. Thank you Wes!
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: lm_freehand in 11.2 - DrawToolSizeCircle method error

Post by synthsin75 »

I'm glad that worked.
Post Reply