[JW Lua] Calculating the last measure on a page

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Sat Sep 6 11:27:02 CEST 2014


Jan and Chris,

It's very strange if FCPage:UpdateLayout() works but 
finale.FCStaffSystems.UpdateFullLayout() doesn't, since they are both 
using the same PDK API.

Could you please send me any JW Lua code (that use an layout update) and 
a buggy Finale document that doesn't work for you?


Best regards,

Jari Williamsson



On 2014-09-06 10:05, Chris wrote:
> hello
>
> I found the same problem and finale.FCStaffSystems.UpdateFullLayout()
> changes nothing.
> But Page.Update() works.
>
> local pages=finale.FCPages()
> pages:LoadAll()
> for page in each(pages) do
>       page:UpdateLayout()
>       local firstmeasure=page:CalcFirstMeasure()
>       local lastmeasure=page:CalcLastMeasure()
>       print("Measures",firstmeasure,lastmeasure)
> end
>
>
> Best regards
>
> Chris
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list