ASP11: tool script not working if there's no OnMouseDown

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

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

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

ASP11: tool script not working if there's no OnMouseDown

Post by Stan » Fri May 29, 2015 1:32 am

Some of my tool scripts are stopped working in 11 without any visible error. The symptoms are simple: you click on the tool icon, and nothing happens. It took me a while to find the reason - the failing scripts didn't have the OnMouseDown method.

So, if your scripts are not working in ASP 11, try this workaround:

Code: Select all

function <yourScriptName>:OnMouseDown(moho, mouseEvent)
	-- do nothing
end
________________________________________________________________________
http://mohoscripting.com/ - Unofficial Moho (Anime Studio) Lua Scripting Documentation
http://2danimator.ru/ - Russian Anime Studio Forum
Post Reply