<div dir="ltr"><div>I did an overhaul of hide/show repeat brackets for 0.65. Each FCSeparatePlacement has its own hide/show bit that overrides the hide/show in the main repeat bracket.</div><div><br></div><div>Possibly that will fix this issue.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 20, 2022 at 4:30 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">jan@angermueller.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
Robert,<br>
<div> <br>
do you have any ideas on this old issue? <br>
It popped up again in another document.<br>
Is the "Show/Hide" property somehow available for FCEndingRepeat?<br>
<br>
Jan<br>
<div><br>
<div>On 03.07.2019 / 12:31 Jan
Angermüller wrote:</div>
<br>
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)
.<br>
<div lang="x-unicode"> So there seems be
some measure cell flag that says that the repeat bracket
should hide. But I can't access it.<br>
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.<br>
<br>
The result:<br>
- the first repeat bracket is again hidden<br>
- but the copied repeat bracket is fine<br>
<img src="cid:183f5526f1d78946431" alt=""><br>
<br>
Here is the new test code (applied to the document from the
email 2/7/2019):<br>
<br>
local endrep=finale.FCEndingRepeat()<br>
if endrep:Load(5) then --i.e. load bracket in measure 5<br>
endrep.IndividualPositioning=true --not really required
here as it is already true in the document, just for better
understanding<br>
local sep=endrep:CreateSeparatePlacements()<br>
local s=sep:AssureStaffPlacement(1) -- i.e. create
separate placement element for staff 1 -> this leads to the
hiding<br>
<br>
--Now save to measure 6 and see what happens<br>
endrep:SaveAs(6)<br>
local meas=finale.FCMeasure()<br>
meas:Load(6)<br>
meas.RepeatBracketFlag=true --make the new repeat bracket
active<br>
meas:Save()<br>
local sep=endrep:CreateSeparatePlacements()<br>
local s=sep:AssureStaffPlacement(1) --DOES NOT hide the
second repeat bracket<br>
<br>
--try again with loading<br>
local endrep=finale.FCEndingRepeat()<br>
if endrep:Load(6) then <br>
endrep.IndividualPositioning=true<br>
local sep=endrep:CreateSeparatePlacements()<br>
local s=sep:AssureStaffPlacement(1) --DOES NOT hide
the second repeat bracket<br>
end<br>
end<br>
<br>
Anyone any ideas?<br>
<br>
Jan<br>
</div>
<br>
<div style="font-family:monospace;font-size:14px" lang="x-western">
<div> <br>
-------- Weitergeleitete Nachricht --------
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<th valign="BASELINE" nowrap align="RIGHT">Betreff:
</th>
<td>[JW Lua] Repeat Brackets Hide Mysteriously</td>
</tr>
<tr>
<th valign="BASELINE" nowrap align="RIGHT">Datum:
</th>
<td>Tue, 2 Jul 2019 13:08:50 +0200</td>
</tr>
<tr>
<th valign="BASELINE" nowrap align="RIGHT">Von:
</th>
<td>Jan Angermüller <a href="mailto:jan@angermueller.com" target="_blank"><jan@angermueller.com></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap align="RIGHT">Antwort
an: </th>
<td>The JW Lua script plug-in. <a href="mailto:jwlua@jwmusic.nu" target="_blank"><jwlua@jwmusic.nu></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap align="RIGHT"><br>
</th>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
Jari et al,<br>
<br>
I have a problem with an ending repeat bracket. Attached is
an excerpt from an orchestra score.<br>
When I want to add a "separate placement" (i.e. a change of
the bracket offsets only for this staff), the repeat bracket
always hides. The following code is the excerpt which leads
to the hiding in the attached document:<br>
<br>
local endrep=finale.FCEndingRepeat()<br>
if endrep:Load(5) then --i.e. load bracket in measure 5<br>
endrep.IndividualPositioning=true --not really required
here as it is already true in the document, just for better
understanding<br>
local sep=endrep:CreateSeparatePlacements() <br>
local s=sep:AssureStaffPlacement(1) -- i.e. create
separate placement element for staff 1 -> this leads to
the hiding<br>
--... here follows the part which sets the offsets, but
it's not required for this problem, the staff becomes hidden<br>
end<br>
<br>
Can anyone explain this?<br>
Or in other words: each bracket in Finale has a show/hide
property. How can I address show/hide of brackets in JW Lua?<br>
FCSeparatePlacement only has offset values, but no
visibility properties. Same for FCEndingRepeat.<br>
(Of course, you can also handle this over staff lists, but I
assume they don't have anything to do with show/hide
property)<br>
<br>
Jan<br>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>