[JW Lua] Change System Margins after Double barline

Herbert van Essen hpvanessen at gmail.com
Wed Oct 30 14:56:17 CET 2013


Hi Jari et al,

I try to change the left and top margins of a system after the measure that
has a double barline.
How should I load the right system after the measure with the double
barline?


allmeasures = finale.FCMeasures()
allmeasures:LoadAll()
for measure in each(allmeasures) do
    if measure.Barline == finale.BARLINE_DOUBLE then
       print ("Double barline found in measure ", measure.ItemNo)
       local ss = finale.FCStaffSystem()
        ss:Load(measure + 1)
        ss.TopMargin = (80)
        ss.LeftMargin = (40)
        ss:Save()
end

finale.FCStaffSystems.UpdateFullLayout()
end

Thanks very much!

Herbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20131030/a18f879c/attachment.htm>


More information about the JWLua mailing list