[JWplugins] JW Lua - preview

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Jul 30 22:15:07 CEST 2013


Hello All!

I'm hooking up my PDK Framework to the Lua script language (so you can 
write your own plug-ins in Finale), and the early tests seem to work 
perfectly. The code below is an example of a fully functional plug-in 
task. Look and see if you can understand what the script does:
----
region = finale.FCMusicRegion()
region:SetCurrentSelection()
measures = finale.FCMeasures()
measures:LoadRegion(region)
for measure in each(measures) do
    measure.Width = measure.Width * 110 / 100
end
measures:SaveAll()
---


Best regards,

Jari Williamsson





More information about the JWplugins mailing list