[JW Lua] Creating a simple "1-Line" staff style not possible ?

Jan Angermüller jan at angermueller.com
Thu Feb 11 11:38:15 CET 2016


Jari (and others),

has anyone succeeded yet in creating a staff style definition in JW Lua 
that simply has a "1-line with Full Barline" style that looks like the 
option with the same name from the Staff Style Dialog ? It's not 
possible yet, is it ?
At the bottom you find the code snippet that shows a 1-line staff with 
full barline, but with a wrong placement of the staffline (not centered) 
and the rests.

It's probably because the parameters for Line Spacing and Default 
Placement are not accessible yet. Or am I missing something ?

Best,
Jan

local sdef=finale.FCStaffStyleDef()
sdef:SetUseStafflineAdjustments(true)
sdef:SetLineCount(1)
sdef.TopBarlineOffset=48
sdef.BottomBarlineOffset=-48

local name=finale.FCString()
name.LuaString="Line1"
sdef:SetName(name)
sdef:SaveNew()




More information about the JWLua mailing list