[JW Lua] Weird MeasurePos values with FCCellPos

Jan Angermüller jan at angermueller.com
Mon Aug 28 19:02:44 CEST 2017


Jari,

I tried to implement FCCellPos, but from time to time I am getting weird 
values in FCCellPos.MeasurePos right after construction. I haven't 
figured out yet why/when it sometimes holds correct values. Maybe you 
find it faster when looking at your code?

Sample code:
local cellpos=finale.FCCellPos(44,1,0)
print(cellpos.Measure,cellpos.Staff,cellpos.MeasurePos)

Running [Unnamed Script] ======>
44 1 65792
<======= [Unnamed Script] succeeded (Processing time: 0.000 s).

The next time it prints:
44 1 -2113011446

Also the sample code in the class browser needs to be updated, it looks 
like FCCell Copy&Paste:
local cellpos = finale.FCCellPos(m, s)

Best,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20170828/840f41ca/attachment.html>


More information about the JWLua mailing list