Page 1 of 1
Did Moho 13.5 get any scripting Love?
Posted: Tue Apr 27, 2021 8:03 am
by SimplSam
Does anyone know whether 13.5 got any attention in the scripting department? Anything new? Anything fixed?
Re: Did Moho 13.5 get any scripting Love?
Posted: Tue Apr 27, 2021 9:57 am
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)
Re: Did Moho 13.5 get any scripting Love?
Posted: Tue Apr 27, 2021 1:58 pm
by Stan
The pkg files from Moho 13.5 are identical to the ones from 12.5.
Re: Did Moho 13.5 get any scripting Love?
Posted: Tue Apr 27, 2021 5:14 pm
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.