Search found 57 matches

by MehdiZangenehBar
Sun May 19, 2024 11:27 pm
Forum: Scripting
Topic: Multiple Dialogs
Replies: 0
Views: 38

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: 0
Views: 31

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: 47

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: 0
Views: 85

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: 97

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: 0
Views: 51

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: 673

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...
by MehdiZangenehBar
Wed May 08, 2024 11:24 pm
Forum: Scripting
Topic: MOHO.UpdateTable
Replies: 7
Views: 276

Re: MOHO.UpdateTable

KuzKuz wrote: Wed May 08, 2024 9:54 am The simplest example is calling UpdateWidgets() for a non-modal dialog when changing the frame or layer.
So UpdateWidgets not happening for non-modal by default? never notice that.
by MehdiZangenehBar
Wed May 08, 2024 11:22 pm
Forum: Scripting
Topic: MOHO.UpdateTable
Replies: 7
Views: 276

Re: MOHO.UpdateTable

Great example! thanks!
by MehdiZangenehBar
Wed May 08, 2024 2:04 am
Forum: Scripting
Topic: MOHO.UpdateTable
Replies: 7
Views: 276

Re: MOHO.UpdateTable

Well, I'm little bit confused about it, would you please show me a working useful example?
by MehdiZangenehBar
Tue May 07, 2024 10:38 am
Forum: Scripting
Topic: MOHO.UpdateTable
Replies: 7
Views: 276

MOHO.UpdateTable

Please someone explain what is MOHO.UpdateTable?
by MehdiZangenehBar
Tue May 07, 2024 1:53 am
Forum: Scripting
Topic: DoLayout event
Replies: 17
Views: 673

Re: DoLayout event

KuzKuz wrote: Mon May 06, 2024 8:57 pm Each panel update like this will cost you approximately 15-20 megabytes of RAM depending on the size of your project.
Are you sure it took that amount of memory? Any function to calculate that?
by MehdiZangenehBar
Tue May 07, 2024 1:51 am
Forum: Scripting
Topic: DoLayout event
Replies: 17
Views: 673

Re: DoLayout event

synthsin75 wrote: Mon May 06, 2024 11:27 pm https://mohoscripting.com/snippets/1
I don't want to iterate over ALL layers, I need a function to find first match and exit the loop.
by MehdiZangenehBar
Mon May 06, 2024 11:13 pm
Forum: Scripting
Topic: DoLayout event
Replies: 17
Views: 673

Re: DoLayout event

So we should iterate over document layers and check the layer type? (find the first?) any example?
by MehdiZangenehBar
Mon May 06, 2024 7:26 pm
Forum: Scripting
Topic: DoLayout event
Replies: 17
Views: 673

Re: DoLayout event

Your code actually works, except for group layer, so I changed the code to support that as well. Note that I added some flag to prevent fire UpdateWidget and DoLayout couple times. Please have a look: -- ************************************************** -- General information about this script -- *...