Did Moho 13.5 get any scripting Love?

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
SimplSam
Posts: 1049
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Did Moho 13.5 get any scripting Love?

Post by SimplSam »

Does anyone know whether 13.5 got any attention in the scripting department? Anything new? Anything fixed?
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
hayasidist
Posts: 3529
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Did Moho 13.5 get any scripting Love?

Post by hayasidist »

yes - there's a couple of new services:

User Preferences Folder: moho:UserPrefsDir()
User Preferences File: moho:UserPrefsFile()
User Content Folder: moho:UserContentDir()

for an example of the return strings, in Moho run Scripts / Script writing / Print Test

but I don't think there's much else in this release .. if I've missed something important, I'm sure someone else will chime in - and ... Stan is usually quite quick in updating the scripting website http://mohoscripting.com/

(there's a few pending requests for new services that hopefully will appear in later versions)
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: Did Moho 13.5 get any scripting Love?

Post by Stan »

The pkg files from Moho 13.5 are identical to the ones from 12.5.
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Did Moho 13.5 get any scripting Love?

Post by synthsin75 »

There are some more new functions in the Vitruvian (lm_bone_groups.lua) and wind tools.

skel:MarkGroupVisibilityUnknown()
skel:FirstSelectedGroup()
skel:AddGroup(moho.layerFrame)
group:AddBone(i)
group:CountBones()
group.fActiveBone:SetValue(moho.layerFrame, 0)
skel:GroupForBone(i, false)
group:RemoveBone(i)
selGroup:ActiveBone()

boneLayer.fWindDirection.value
boneLayer.fWindStrength.value
boneLayer:EvaluateWindTurbulentAngle(origin)
boneLayer:EvaluateWindTurbulentStrength(origin)
boneLayer.fWindTurbulentAmplitude
boneLayer.fWindTurbulentFrequency

There may be more, but that's what I found with a quick look.
Post Reply