Search found 69 matches
- Sat Jul 06, 2024 5:48 pm
- Forum: Scripting
- Topic: A way to use "UpdateCurFrame" in a "LayerScript" function ?
- Replies: 0
- Views: 4069
A way to use "UpdateCurFrame" in a "LayerScript" function ?
I am trying to use "UpdateCurFrame" to update the properties of a bone as follows but it is not working, is there a way to use it or is there another way to update the properties in a "LayerScript"? I also tried "UpdateBoneMatrix" but it doesn't work either. function Pr...
- Mon May 22, 2023 4:11 pm
- Forum: General Moho Discussion
- Topic: Moho 14. And The Rise Of AI.
- Replies: 40
- Views: 24561
- Sun May 07, 2023 4:37 am
- Forum: Scripting
- Topic: Is there a way to close a SimpleDialog
- Replies: 5
- Views: 3508
Re: Is there a way to close a SimpleDialog
Hi, Is there a way to close a SimpleDialog, which was started with DoModal? I've tried to call OnOK(), OnCancel() and EndDialog(dlg) but they were all undefined (nil). I would like to close the modal dialog, after another button than the OK/Cancel button was clicked. To close a Domodal from another...
- Mon May 01, 2023 2:34 am
- Forum: General Moho Discussion
- Topic: I'm looking for moho old version please help me :(
- Replies: 10
- Views: 2048
Re: I'm looking for moho old version please help me :(
Does anyone have 13.0 , 13.0.1 or 13.0.2 Mac versions of Moho? Can you please send it to me? I was using windows before but now i switched to macbook. Version 13.0 works faster for me than version 13.5. I don't know, but I think it's because of my characters with too many layers and i made all char...
- Wed Apr 26, 2023 1:43 am
- Forum: General Moho Discussion
- Topic: MSVCR100.dll couldn't be found!
- Replies: 12
- Views: 8506
Re: MSVCR100.dll couldn't be found!
That is easy to fix, maybe you are installing Moho 13.5 on Windows 8. I had this happen on my laptop, you just need to update your windows 8, that is, check for all updates and it will be solved.
And one thing on your website requirements says Windows 10, maybe that's it too.
- Thu Apr 13, 2023 1:19 pm
- Forum: Scripting
- Topic: How can I use require() in a script?
- Replies: 7
- Views: 2054
Re: How can I use require() in a script?
... Is there any way to install libraries with C using Lua? For example I want to use this library :https://github.com/lunarmodules/luasocket But using package.path doesn't work. Do you think it is possible? ... I see, I have investigated and what can be done is to compile the library to be portabl...
- Tue Apr 11, 2023 3:23 pm
- Forum: Scripting
- Topic: How can I use require() in a script?
- Replies: 7
- Views: 2054
Re: How can I use require() in a script?
... Could you tell me in json there is a function that is "decode" when I call require("json"), but when I call json.decode(result) there is an error, why is that? It depends which library you were using, and also what the error was. If it was the same library as the one I refer...
- Sun Apr 09, 2023 6:41 pm
- Forum: Scripting
- Topic: How can I use require() in a script?
- Replies: 7
- Views: 2054
Re: How can I use require() in a script?
I have used this technique to load pure XML lua libraries in the SS SVG Import script, in a manner similar to that below: Essentially - you need to tell Moho (Lua) where to look, by appending your path to the Lua package.path, but you also only want to do that once. Below is an example for JSON - w...
- Wed Apr 05, 2023 3:19 pm
- Forum: Scripting
- Topic: How can I use require() in a script?
- Replies: 7
- Views: 2054
Re: How can I use require() in a script?
I have used this technique to load pure XML lua libraries in the SS SVG Import script, in a manner similar to that below: Essentially - you need to tell Moho (Lua) where to look, by appending your path to the Lua package.path, but you also only want to do that once. Below is an example for JSON - w...
- Wed Apr 05, 2023 3:25 am
- Forum: Scripting
- Topic: How can I use require() in a script?
- Replies: 7
- Views: 2054
How can I use require() in a script?
Hello, I have seen many useful libraries, but I don't know if I could install them in a lua script and use the require() function.
Would anyone know how to install those libraries and then use them in a script ?
These libraries can be downloaded from github.com .
Would anyone know how to install those libraries and then use them in a script ?
These libraries can be downloaded from github.com .
- Fri Mar 31, 2023 12:32 pm
- Forum: General Moho Discussion
- Topic: Is there a way to create keyboard shortcuts for menu scripts?
- Replies: 7
- Views: 1781
Re: Is there a way to create keyboard shortcuts for menu scripts?
For any / only tech-heads: I'm guessing that all the handlers for Menu items (e.g. File / Open / ..) _except_ Script are embedded in Moho core -- Scripts are the only .lua stuff in the Menu line -- and this is the reason behind why the custom keystrokes won't work? Anyone got any better ideas / inf...
- Fri Mar 31, 2023 1:51 am
- Forum: General Moho Discussion
- Topic: Is there a way to create keyboard shortcuts for menu scripts?
- Replies: 7
- Views: 1781
- Thu Mar 30, 2023 2:01 pm
- Forum: General Moho Discussion
- Topic: Is there a way to create keyboard shortcuts for menu scripts?
- Replies: 7
- Views: 1781
Is there a way to create keyboard shortcuts for menu scripts?
I would like the script not to appear in the tools section, but at the same time I want a keyboard shortcut to use it when I need it.
- Thu Feb 09, 2023 1:06 am
- Forum: Scripting
- Topic: Select layer and update tool?
- Replies: 4
- Views: 1435
Re: Select layer and update tool?
Ah, that works well too, thankssynthsin75 wrote: ↑Thu Feb 09, 2023 12:57 am You might also try jumping to/from frame zero and back. That's another thing that reliably reevaluates the tools window.
- Thu Feb 09, 2023 1:03 am
- Forum: Scripting
- Topic: Select layer and update tool?
- Replies: 4
- Views: 1435
Re: Select layer and update tool?
But it works when you use PickGlobalLayer : function Pickckckc:OnMouseUp(moho, mouseEvent) local layer = mouseEvent.view:PickGlobalLayer(mouseEvent.pt) if layer == nil then return end if (layer == nil or layer == moho.layer) then return end moho.document:ClearSecondarySelection() moho:SetSelLayer(la...