Scripting API Changes of Moho 14.3

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Stan
Posts: 217
Joined: Sun Apr 19, 2009 3:22 pm

Scripting API Changes of Moho 14.3

Post by Stan »

Hi all,

Below is the list of the Scripting API changes of the version 14.3:

Class M_Point
New Properties:

Code: Select all

AnimVal		fOpacity
real		fTempOpacity
AnimVal		fColorDrift
real		fTempColorDrift
		


Class M_Style
New properties:

Code: Select all

real		fBrushHueDrift
real 		fBrushSatDrift
real 		fBrushValDrift
The changes have been added to mohoscripting.com.
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
hayasidist
Posts: 3830
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Scripting API Changes of Moho 14.3

Post by hayasidist »

and the associated new channel identifiers have also been added to the relevant page.

Hopefully, by now, no one should be using the channel numbers -- apart from the View / Timeline Channels function which still needs to use numerical identifier values.
The impact of this is that if you have made changes to which channels you want to see in the timeline, you will probably find that you need to reset these at every new release where channel codes change.

From the next release onwards, my plan is that only the channel identifiers (not the numerical values) will be listed, along with indication of when they were added or removed.
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Scripting API Changes of Moho 14.3

Post by Greenlaw »

hayasidist wrote: Sat Dec 21, 2024 12:10 pm The impact of this is that if you have made changes to which channels you want to see in the timeline, you will probably find that you need to reset these at every new release where channel codes change.
Yeah, that's been an issue for me for a while. Since Moho 14.2, plus being involved with 14.3 beta, meant I had to keep resetting my Timeline Channels window for both Bones and other layer types. I had to apply the fix again only yesterday because I updated my desktop with the official final version of 14.3.

For me, it's not just a matter of clicking the All Auto button and moving on because I also need to make significant non-standard changes to the window. After a while, this gets tedious. I wish Moho could save and import settings for panels like this.

Ideally, we should be able to save the current window's settings as a preset and select it from a list, as we do now with Keyboard Shortcuts. There are other windows and panels in Moho where I wish to save and import presets, and it would make Moho even more convenient for ever-changing production requirements.
Last edited by Greenlaw on Sun Dec 22, 2024 6:21 am, edited 1 time in total.
User avatar
hayasidist
Posts: 3830
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Scripting API Changes of Moho 14.3

Post by hayasidist »

Greenlaw wrote: Sat Dec 21, 2024 6:42 pm
hayasidist wrote: Sat Dec 21, 2024 12:10 pm The impact of this is that if you have made changes to which channels you want to see in the timeline, you will probably find that you need to reset these at every new release where channel codes change.
Yeah, that's been an issue for me for a while. Since Moho 14.2, plus being involved with 124.3 beta, meant I had to keep resetting my Timeline Channels window for both Bones and other layer types. I had to apply the fix again only yesterday because I updated my desktop with the official final release version of 14.3.

For me, it's not just a matter of clicking the All Auto button and moving on because I also need to make significant non-standard changes to the window. After a while, this gets tedious. I wish Moho could save and import settings for panels like this.

Ideally, we should be able to save the current window's settings as a preset and select it from a list, as we do now with Keyboard Shortcuts. There are other windows and panels in Moho where I wish to save and import presets, and it would make Moho even more convenient for ever-changing production requirements.
yes - agreed. At present, the channel visibility is saved along with other tool (e.g. freehand, text, ...) settings but, IMO, in a way that isn't readily reusable when new channels appear.
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Scripting API Changes of Moho 14.3

Post by Greenlaw »

Thanks for the explanation, Paul!

I'm recording a short video so users who run into the problem will know how to fix it. :)
Post Reply