Search found 78 matches

by MehdiZangenehBar
Tue Jun 11, 2024 1:33 am
Forum: Scripting
Topic: Multiple float dialogs
Replies: 7
Views: 176

Re: Multiple float dialogs

OK, you right!
it will crash randomly...
I should change my method to the button.
Thanks for your explantion.
by MehdiZangenehBar
Tue Jun 11, 2024 1:15 am
Forum: Scripting
Topic: Multiple float dialogs
Replies: 7
Views: 176

Re: Multiple float dialogs

I just tested with pcall, it seems it will not crash, would you please check this out on your system: ScriptName = 'Test_Script' Test_Script = {} Test_Script.first_float_dialog = nil function Test_Script:OnMouseDown(moho, mouseEvent) end function Test_Script:DoLayout(moho, simple_dialog_layout) if T...
by MehdiZangenehBar
Tue Jun 11, 2024 1:01 am
Forum: Scripting
Topic: Multiple float dialogs
Replies: 7
Views: 176

Re: Multiple float dialogs

In my case that's exactly what I want, close ALL created float dialogs and reopen them on DoLayout. Please take a look at this example: ScriptName = 'Test_Script' Test_Script = {} Test_Script.first_float_dialog = nil function Test_Script:OnMouseDown(moho, mouseEvent) end function Test_Script:DoLayou...
by MehdiZangenehBar
Mon Jun 10, 2024 10:58 am
Forum: Scripting
Topic: Multiple float dialogs
Replies: 7
Views: 176

Re: Multiple float dialogs

funny is that if I close any dialog, it will close next created dialogs.
1 will close 1 .. 5
2 will close 2 .. 5
3 will close 3 .. 5
4 will close 4 .. 5
5 will close 5
by MehdiZangenehBar
Mon Jun 10, 2024 10:29 am
Forum: Scripting
Topic: Multiple float dialogs
Replies: 7
Views: 176

Re: Multiple float dialogs

synthsin75 wrote: Mon Jun 10, 2024 12:47 am You shouldn't be using doLayout to make modeless dialogs. You can use a button in the tool options (doLayout) instead.
Well, your answer will not explain the problem, I have to create dialogs using script not any button.
by MehdiZangenehBar
Sun Jun 09, 2024 11:02 pm
Forum: Scripting
Topic: Multiple float dialogs
Replies: 7
Views: 176

Multiple float dialogs

When I click on dialog with label "1" , all other dialogs will be closed, how we can prevent this? ScriptName = 'Test_Script' Test_Script = {} function Test_Script:OnMouseDown(moho, mouseEvent) end function Test_Script:DoLayout(moho, layout) for i = 1 , 5 do local simple_dialog = LM.GUI.Si...
by MehdiZangenehBar
Wed Jun 05, 2024 1:41 am
Forum: Scripting
Topic: Keyboard - Mouse events not working
Replies: 2
Views: 170

Re: Keyboard - Mouse events not working

So the only trigger is Alt?
by MehdiZangenehBar
Wed Jun 05, 2024 1:40 am
Forum: Scripting
Topic: Image Alpha in the UI
Replies: 1
Views: 118

Re: Image Alpha in the UI

any idea?
by MehdiZangenehBar
Wed Jun 05, 2024 1:39 am
Forum: Scripting
Topic: Vitruvian Bones
Replies: 3
Views: 162

Re: Vitruvian Bones

Thanks, So "Virtuvian" is hard and fake name for that.
by MehdiZangenehBar
Wed Jun 05, 2024 1:36 am
Forum: Scripting
Topic: Update UI after deleting keyframe
Replies: 2
Views: 91

Re: Update UI after deleting keyframe

NO, I found the standard solution which is:
switch_layer:UpdateCurFrame()
by MehdiZangenehBar
Tue Jun 04, 2024 3:15 pm
Forum: Scripting
Topic: Update UI after deleting keyframe
Replies: 2
Views: 91

Update UI after deleting keyframe

-- ************************************************** -- General information about this script -- ************************************************** ScriptName = "Test_Script" Test_Script = {} function Test_Script:Name() return 'Test Script' end function Test_Script:Version() return '1.0'...
by MehdiZangenehBar
Mon Jun 03, 2024 11:38 pm
Forum: Scripting
Topic: Vitruvian Bones
Replies: 3
Views: 162

Vitruvian Bones

How we can create a script same as "Enable/Disable All Vitruvian Bones" in the "Bone" menu?
by MehdiZangenehBar
Sun Jun 02, 2024 5:23 pm
Forum: Scripting
Topic: Image Alpha in the UI
Replies: 1
Views: 118

Image Alpha in the UI

Moho UI will use black color as alpha for all images in the UI, how we can prevent this? Is it possible to load an image normally?
by MehdiZangenehBar
Wed May 29, 2024 10:46 pm
Forum: Scripting
Topic: alt - shift - ctrl is pressed?
Replies: 2
Views: 134

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: 2
Views: 170

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...