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

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Feb 16 21:15:48 CET 2016


Jan,

You're correct. I have forgot to include support for the default 
placements in the Staff Setup dialog box. I'll add that! I'll probably 
also add helper methods to automatically set the values for the 4 
predefined options there (in the "Reset Staff to" popup).

Best regards,

Jari Williamsson


On 2016-02-11 11:38, Jan Angermüller wrote:
> 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()
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list