[JW Lua] Repeat Brackets Hide Mysteriously ... More info, but still unsolved
Jan Angermüller
jan at angermueller.com
Wed Jul 3 12:31:33 CEST 2019
I have found out that when you copy (Save as...) the repeat bracket to a
new measure, the new repeat bracket will behave correctly and not hide
when calling sep:AssureStaffPlacement(1) .
So there seems be some measure cell flag that says that the repeat
bracket should hide. But I can't access it.
When I now delete the old repeat bracket in measure 5 and run the script
again to copy back from measure 6 to measure 5, the new repeat bracket
will again behave false and hide. So the "Hide" flag is not reset by
deleting the repeat bracket, but still seems to be active in the background.
The result:
- the first repeat bracket is again hidden
- but the copied repeat bracket is fine
Here is the new test code (applied to the document from the email 2/7/2019):
local endrep=finale.FCEndingRepeat()
if endrep:Load(5) then --i.e. load bracket in measure 5
endrep.IndividualPositioning=true --not really required here as it
is already true in the document, just for better understanding
local sep=endrep:CreateSeparatePlacements()
local s=sep:AssureStaffPlacement(1) -- i.e. create separate
placement element for staff 1 -> this leads to the hiding
--Now save to measure 6 and see what happens
endrep:SaveAs(6)
local meas=finale.FCMeasure()
meas:Load(6)
meas.RepeatBracketFlag=true --make the new repeat bracket active
meas:Save()
local sep=endrep:CreateSeparatePlacements()
local s=sep:AssureStaffPlacement(1) --DOES NOT hide the second
repeat bracket
--try again with loading
local endrep=finale.FCEndingRepeat()
if endrep:Load(6) then
endrep.IndividualPositioning=true
local sep=endrep:CreateSeparatePlacements()
local s=sep:AssureStaffPlacement(1) --DOES NOT hide the
second repeat bracket
end
end
Anyone any ideas?
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20190703/6924c3e9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: odgacaonidgjegke.png
Type: image/png
Size: 66325 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20190703/6924c3e9/attachment.png>
More information about the JWLua
mailing list