[JW Lua] Measure region alignment not working

Dave Foster fozder at me.com
Fri Jun 26 13:03:01 CEST 2015


Hi Jari,

Having a tinker with setting values for measure number regions, and I’m not sure that the FCMeasureNumberRegion SetStartAlignment / SetMultipleAlignment / SetMultiMeasureAlignment are working? Everything else seems (including justification) to be responding correctly. Test code:

local measureNumberRegions = finale.FCMeasureNumberRegions()
measureNumberRegions:LoadAll()
for mnr in each(measureNumberRegions) do
	mnr:SetStartAlignment(finale.MNALIGN_CENTER, false)
	mnr:SetMultipleAlignment(finale.MNALIGN_CENTER, false)
	mnr:SetMultiMeasureAlignment(finale.MNALIGN_CENTER, false)
        mnr:Save()
end

Whatever enums are used it doesn’t affect the default settings (start = left, multiple = left, multimeasure = centre), and is the same whether doing the settings for score or parts (the 2nd bool argument).

Also, in trying to debug I struggled with FCMeasureNumberRegion Get StartAlignment, which seems to want a measure number region as an argument, not a bool as in the documentation?

Cheers,

Dave



More information about the JWLua mailing list