Search found 65 matches

by MehdiZangenehBar
Wed May 29, 2024 10:46 pm
Forum: Scripting
Topic: alt - shift - ctrl is pressed?
Replies: 2
Views: 64

Re: alt - shift - ctrl is pressed?

what about right-click? is it possible?
by MehdiZangenehBar
Wed May 29, 2024 5:18 pm
Forum: Scripting
Topic: Keyboard - Mouse events not working
Replies: 1
Views: 58

Keyboard - Mouse events not working

Except for the "OnKeyDown" in some cases (pressing f key), none of the following events works, why? -- ************************************************** -- General information about this script -- ************************************************** ScriptName = "Test_Script" Test...
by MehdiZangenehBar
Wed May 29, 2024 5:15 pm
Forum: Scripting
Topic: alt - shift - ctrl is pressed?
Replies: 2
Views: 64

alt - shift - ctrl is pressed?

How we can detect if user clicked on button while (alt or shift or ctrl) pressed? -- ************************************************** -- General information about this script -- ************************************************** ScriptName = "Test_Script" Test_Script = {} function Test_S...
by MehdiZangenehBar
Mon May 27, 2024 10:29 pm
Forum: Scripting
Topic: Is there a way to close a SimpleDialog
Replies: 5
Views: 601

Re: Is there a way to close a SimpleDialog

Hi Sam, That was my suspicion. I've now created a c++ lua module that allows to close the modal dialog using a workaround: extern "C" __declspec(dllexport) int closeMenuWindow(lua_State * L) { lua_lock(L); const char* windowName = luaL_checkstring(L, -1); lua_pushnil(L); lua_unlock(L); #i...
by MehdiZangenehBar
Sun May 26, 2024 7:18 pm
Forum: Scripting
Topic: Close Dialog
Replies: 3
Views: 358

Re: Close Dialog

Well, I read 4570 lines of code, and didn't realized how we could CLOSE a dialog. would you please do me a favor and let me know how we simply do that?
by MehdiZangenehBar
Sun May 26, 2024 1:12 am
Forum: Scripting
Topic: Resizable Dialog
Replies: 2
Views: 325

Re: Resizable Dialog

would you please send me the link to the "Rai's Shapes Window."

Edit: I saw that in your other reply, thanks
by MehdiZangenehBar
Sat May 25, 2024 7:12 pm
Forum: Scripting
Topic: Layer tag
Replies: 2
Views: 107

Re: Layer tag

Thank You!
by MehdiZangenehBar
Sat May 25, 2024 12:59 pm
Forum: Scripting
Topic: Layer tag
Replies: 2
Views: 107

Layer tag

I have couple of question remained with no answer...
Anyway...
Can we add tag to a layer with key-value? I know there is UserTag, but I'm looking for more advanced method. something which is only accebale throught script. for example something like this:
Layer:SetTag(key,value)
by MehdiZangenehBar
Sun May 19, 2024 11:27 pm
Forum: Scripting
Topic: Multiple Dialogs
Replies: 0
Views: 275

Multiple Dialogs

Let say we created multiple float dialogs, how we can handle OnOK handle? How we can undrstand which dialog is closed? There is no msg argument in return and no id to recognize.
by MehdiZangenehBar
Sun May 19, 2024 10:57 pm
Forum: Scripting
Topic: Close Dialog
Replies: 3
Views: 358

Close Dialog

How we can close a dialog opened using DoModeless?
by MehdiZangenehBar
Sun May 19, 2024 3:37 pm
Forum: Scripting
Topic: GUI elements Width
Replies: 0
Views: 285

GUI elements Width

Is it even possible to change width or height of any control in the GUI?
by MehdiZangenehBar
Tue May 14, 2024 9:24 pm
Forum: Scripting
Topic: Resizable Dialog
Replies: 2
Views: 325

Resizable Dialog

Is it possible to make a float dialog resizable?
by MehdiZangenehBar
Mon May 13, 2024 4:37 pm
Forum: Scripting
Topic: Scale Smart Bones Keyframes
Replies: 0
Views: 310

Scale Smart Bones Keyframes

Let say we have a complex rig with so many smart bones. All actions created in frame 100 as target frame. Is there any existing script to scale all keyframes of all actions? if NO, how we could do that using script?
by MehdiZangenehBar
Mon May 13, 2024 4:23 pm
Forum: Scripting
Topic: UI Alignments
Replies: 1
Views: 297

UI Alignments

Is it possible to align any control to the right side of the toolbar? it seems LM.GUI.ALIGN_RIGHT dosn't effect at all. Also is it possible to change width of the button? It seems this one is also missed. -- ************************************************** -- General information about this script ...
by MehdiZangenehBar
Sun May 12, 2024 4:47 pm
Forum: Scripting
Topic: DoLayout event
Replies: 17
Views: 1243

Re: DoLayout event

Searching for a layer will work much faster than creating a new one even if you have to iterate through all the layers in the project. I'm not sure, Can you prove that? As for the amount of RAM used, just open a scene with characters and monitor in Task Manager how much more RAM Moho uses when crea...