[JW Lua] Page break bug leads to disappearing systems after calling undo/redo
Jan Angermüller
jan at angermueller.com
Thu Oct 18 11:23:20 CEST 2018
Jari,
I have discovered a weird page break bug in JW Lua.
Take the Finale default document or any empty document that has a score
and a part. Then run the simple script below. Make sure the measure
number you enter (the "8" below) is a measure where a new system starts
in the score. It doesn't matter if the new system also starts in the part.
The script just adds a page break in measure 8 in the part.
Now click on undo and redo ... and ups, the page break also appears in
the score and leads to the systems starting with measure 8 vanishing!
Here is a screencam video: https://youtu.be/lEZqDX0i8yM
local parts=finale.FCParts()
parts:LoadAll()
for p in each(parts) do
p:SwitchTo()
if (p.ID>0) then --if this is a part
local meas=finale.FCMeasure()
meas:Load(8) --this must be a measure number where a new
system starts in the score
meas.PageBreak=true
meas:Save()
end
p:SwitchBack()
end
Maybe it has something to do with our email conversation from the
2017/09/11 about "are FCMeasure properties part-dependent or global"?
Anyone any ideas on this?
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20181018/24106cd8/attachment.htm>
More information about the JWLua
mailing list