Search found 174 matches

by Stan
Wed Nov 10, 2021 2:47 pm
Forum: Scripting
Topic: PSD layer ID in moho 13.5.2
Replies: 2
Views: 1215

Re: PSD layer ID in moho 13.5.2

I'm going to update mohoscripting.com soon for all new changes, but to answer your question for now I can say that the following methods were removed in 13.5.2:

Code: Select all

class ImageLayer:

	SetUniquePSDLayerID(layerPSDID)
	UniquePSDLayerID()
	SetPSDLayerOrderID(layerOrderID)
	PSDLayerOrderID()
by Stan
Fri Sep 17, 2021 3:59 pm
Forum: Scripting
Topic: LK_Render
Replies: 18
Views: 7752

Re: Start background commandline render from Lua script?

Lukas wrote: Fri Sep 17, 2021 3:41 pm if anyone's interested.
You'll be surprised how many people find it useful! :D
by Stan
Fri Sep 03, 2021 7:43 pm
Forum: Scripting
Topic: MohoScripting.com - unofficial Moho scripting documentation
Replies: 55
Views: 82605

Re: MohoScripting.com - unofficial Moho scripting documentation

Some good news, folks. - Both mohoscripts.com and mohoscripting.com are now running on https. - Link to the old Create New Script app is removed as obsolete. - Fixed a bug with incorrect quotation of the tooltips in the Create New Script v2 app. - Check out the new Tools section, especially if you a...
by Stan
Thu Sep 02, 2021 4:06 pm
Forum: Scripting
Topic: what is UUID?
Replies: 4
Views: 1560

Re: what is UUID?

The "regular" layer ID is just the ordinal number of the layer. It may change if you move the layer above or below other layers. And that's what is used by the MohoDoc:Layer(id) or MohoDoc:LayerByAbsoluteID(id). Unlike that, the UUID is a unique identifier. You can use it to make sure the ...
by Stan
Thu Sep 02, 2021 3:31 pm
Forum: General Moho Discussion
Topic: Z-Depth and Zooming
Replies: 16
Views: 12295

Re: Z-Depth and Zooming

This thread reminded me that I have an old tool that does pretty much the same as Alt+Shift+Drag of the LM_TransformLayer tool, but also allows you to enter the Z-value by typing in the number. You might find it useful when setting up your scene in 3D space. I just published the tool here: https://m...
by Stan
Tue Jul 20, 2021 2:46 pm
Forum: General Moho Discussion
Topic: Linux support...
Replies: 5
Views: 2091

Re: Linux support...

Unfortunately, I believe it's gone forever, yeah. Why? See this video where the creator of Linux himself explains the situation with desktop application support:

by Stan
Sat Jul 17, 2021 1:53 pm
Forum: Scripting
Topic: Menu Script to Tool Script
Replies: 2
Views: 1493

Re: Menu Script to Tool Script

If you move your menu script from the "menu" folder into the "tool" folder it will work as a button script. You're gonna need to create an icon for it though (.png 24x20 pixels), otherwise it will default to a crossed-out question mark.
by Stan
Thu Jul 08, 2021 1:10 am
Forum: Scripting
Topic: Windows Script writing application?
Replies: 6
Views: 2220

Re: Windows Script writing application?

I really like Notepad++, it's my tool of choice. I'd also suggest you to try Microsoft Visual Studio Code - it's free and extremely powerful, and it's getting more and more popular, especially for those who does html/css/javascript.
by Stan
Tue Apr 27, 2021 1:58 pm
Forum: Scripting
Topic: Did Moho 13.5 get any scripting Love?
Replies: 3
Views: 2427

Re: Did Moho 13.5 get any scripting Love?

The pkg files from Moho 13.5 are identical to the ones from 12.5.
by Stan
Thu Apr 01, 2021 1:19 pm
Forum: Scripting
Topic: Create style trough lua script?
Replies: 8
Views: 4038

Re: Create style trough lua script?

Unfortunately, adding new styles through scripts is not possible yet. This subject was already discussed here: http://www.lostmarble.com/forum/viewtopic.php?f=12&t=33235. FWIW bug reports were raised in 2014 and 2017 relevant to this subject (31984 and 39555). I've asked the (new) dev team to ta...
by Stan
Sat Feb 20, 2021 5:40 am
Forum: Scripting
Topic: Let's suggest new API features
Replies: 37
Views: 20720

Let's suggest new API features

Hey fellow scripters, let's dream out loud and let the developers know how we see the Moho's API can be improved! I spoke with my friends A.Evseeva and KuzKuz, and we came up with a list of API features and bugfixes we'd love to see implemented in the future releases. New API features: Add the moho ...
by Stan
Sun Jan 31, 2021 8:52 pm
Forum: Scripting
Topic: Undocumented LM classes
Replies: 8
Views: 6757

Re: Undocumented LM classes

We can enable that abilitym but instead of a raw image object, we would probably let Lua do it by specifying the file path of the image. Yeah, that would be a really nice to have feature! Image buttons are compact and attractive, and having the ability to change their visual state on the fly would ...
by Stan
Sun Jan 31, 2021 5:35 pm
Forum: Scripting
Topic: Undocumented LM classes
Replies: 8
Views: 6757

Undocumented LM classes

A question for the Moho developer(s).

There are some undocumented classes that are used in some places but don't have any information available in the pkg files. They are: LM_Cursor, LM_Path, LM_Image.

Is there a chance we could get some information on those?

Thank you!
by Stan
Sun Jan 17, 2021 2:46 am
Forum: Scripting
Topic: How do we help with scripting docs and examples?
Replies: 24
Views: 10958

Re: How do we help with scripting docs and examples?

And @stan - I was thinking that it might be an idea to have some type of feedback form/section on the mohoscripting site, which may alleviate the need for additional admin access. So... maybe if you are logged in as non-admin - you would be allowed to post feedback to the admins (not visible on the...