[JW Lua] Calculating the last measure on a page

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


Jari

I'm sorry, I put "finale.FCStaffSystems.UpdateFullLayout()"after 
"pages:LoadAll()"
and must be before.


finale.FCStaffSystems.UpdateFullLayout()
local pages=finale.FCPages()
pages:LoadAll()

for page in each(pages) do
       local firstmeasure=page:CalcFirstMeasure()
       local lastmeasure=page:CalcLastMeasure()
       print("Measures",firstmeasure,lastmeasure)
end


It's works


Chris




More information about the JWLua mailing list