[JW Lua] Last rest of measure disappearing after swapping the layer (update in code)
Jan Angermüller
jan at angermueller.com
Tue Nov 14 13:23:41 CET 2017
Sorry, I forget to remove a comment in the test code from the last email.
So the correct test code is:
local region=finale.FCMusicRegion()
region:SetFullDocument()
local noteentrylayer = finale.FCNoteEntryLayer(1,1,1,1)
noteentrylayer:Load()
noteentrylayer.LayerIndex=0
local noteentrylayer2 = finale.FCNoteEntryLayer(0,1,1,1)
noteentrylayer2:Load()
noteentrylayer2.LayerIndex=1
noteentrylayer:Save()
noteentrylayer2:Save()
for e in eachentrysaved(region) do --should do nothing, but actually the
rest disappears after this call
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20171114/e2d5689d/attachment.htm>
More information about the JWLua
mailing list