Search found 12 matches

by 570295535
Wed Nov 22, 2023 3:18 pm
Forum: Feature Request Discussions
Topic: I hope to see the new features or APIs of the modeless dialog box in 14.2
Replies: 0
Views: 63859

I hope to see the new features or APIs of the modeless dialog box in 14.2

:D I don't know if these functions have been recorded, but I hope to see them in the new version to make writing scripts more convenient: 1、Automatically save the position coordinates of the modeless dialog box or add a window coordinate API 2、Add API for reloading dialog controls (used to refresh d...
by 570295535
Wed Nov 15, 2023 2:24 pm
Forum: Scripting
Topic: Layer Shortcut Pinboard
Replies: 1
Views: 2784

Re: Layer Shortcut Pinboard

You can refer to Lukas's LK_LayerFinder script, which should give you a lot of inspiration.
viewtopic.php?t=36360
by 570295535
Wed Nov 15, 2023 2:17 pm
Forum: Scripting
Topic: Capture keystrokes in LM.GUI dialog?
Replies: 2
Views: 3509

Re: Capture keystrokes in LM.GUI dialog?

This can only be done with one master script and two additional scripts, each binding its own shortcut key.
by 570295535
Thu Nov 09, 2023 1:43 pm
Forum: Scripting
Topic: How to reload the dialog or the script itself after using the SimpleDialog
Replies: 2
Views: 3532

Re: How to reload the dialog or the script itself after using the SimpleDialog

d.close = LM.GUI.ImageTextList(0, 1, LM.GUI.MSG_CANCEL) l:AddChild(d.close, LM.GUI.ALIGN_LEFT, 0) self.close:SetSelItem(false) -- Close myScript.dlog = nil myScript.dlog = myScript:new(moho) -- ReCreate myScript.dlog:DoModeless() -- ReOpen Thank you SimplSam, I have referenced Lukas' LK_LayerFinder...
by 570295535
Wed Nov 08, 2023 5:23 am
Forum: Scripting
Topic: How to reload the dialog or the script itself after using the SimpleDialog
Replies: 2
Views: 3532

How to reload the dialog or the script itself after using the SimpleDialog

I use SimpleDialog and DoModeless () to create the modeless dialog box, and then when I append or delete a button, I have to manually close script and reopen script . Is there a function to reload SimpleDialog?Alternatively, there are other ways to reload the script itself? Using XXX:Run(moho) cause...
by 570295535
Wed Nov 01, 2023 4:12 am
Forum: Scripting
Topic: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro
Replies: 123
Views: 339623

Re: Lost Scripts' Shapes Window (BETA) for Moho 14

:D I tried, and it was awesome, but it should remember the window coordinates before each close, so it can recover the next time it opens.
by 570295535
Fri Sep 22, 2023 1:09 am
Forum: Scripting
Topic: Problems that cannot be undone after using scripts
Replies: 2
Views: 3120

Re: Problems that cannot be undone after using scripts

Code: Select all

    moho.document:PrepUndo(moho.layer, true)
    moho.document:SetDirty()
Thank you very much. This has solved my problem.
by 570295535
Thu Sep 21, 2023 4:23 pm
Forum: Scripting
Topic: Problems that cannot be undone after using scripts
Replies: 2
Views: 3120

Problems that cannot be undone after using scripts

I am a novice and am currently learning to write scripts. After using my script, it cannot be undone. Please let me know where the problem lies. Thank you ScriptName = "gg0" gg0 = {} function gg0:Name() return "gg0" end function gg0:Version() return "1.0" end function g...
by 570295535
Wed Sep 20, 2023 4:26 am
Forum: General Moho Discussion
Topic: Moho Pro 14 issue
Replies: 7
Views: 3224

Re: Moho Pro 14 issue

You can try turning off OpenGL by changing it to:
"DisableAllOpenGL" "TRUE"
"OpenGLEnabled" "FALSE"
In this file:
C:\Users\Administrator\AppData\Roaming\Lost Marble\Moho Pro\14\Moho Pro14.user.settings
by 570295535
Tue Feb 07, 2023 8:24 am
Forum: Scripting
Topic: MR Track Bone Script
Replies: 14
Views: 9283

Re: MR Track Bone Script

With the tool as it exists now, when I need to include the offset created by a scaling bone I just track the position of a child bone of the scaling bone. Or do you need a bone in the second bone layer to inherit the screen-relative scaling of the original bone for some reason? Just curious how you...
by 570295535
Tue Feb 07, 2023 2:03 am
Forum: Scripting
Topic: MR Track Bone Script
Replies: 14
Views: 9283

Re: MR Track Bone Script

synthsin75 wrote: Tue Feb 07, 2023 1:11 am Bones can't move in the z-axis. Only their layers can.
Sorry, I'm wrong. It's not the z-axis, it's Scale.
by 570295535
Mon Feb 06, 2023 5:27 am
Forum: Scripting
Topic: MR Track Bone Script
Replies: 14
Views: 9283

Re: MR Track Bone Script

This script tracks the x-axis, y-axis and angle, but does not track Scale. Some scenarios will cause exposure. Can you update it to track Scale