[JW Lua] Calculating the last measure on a page

Chris marcel.denio at gmail.com
Sat Sep 6 10:05:10 CEST 2014


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




More information about the JWLua mailing list