<div dir="ltr"><div>I had second thoughts about removing it. For it to be truly correct, SetMode should be removed from FCSeparatePlacement as well and both should have their constructors removed. This seems like a bigger risk than I want to take.</div><div><br></div><div>What I *will* do is add the SEPARMODE_ constants. That's because I am also adding FCSeparatePlacement.GetMode. It turns out that the H2 and V2 fields have different meanings depending on which mode the class is running. V2 functions as a flag field for one of them. (!) Once I have all the information in place, I'll add it to the documentation along with any missing fields.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 2, 2022 at 3:25 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>
Robert,<br>
<br>
I have found one line in Perfect Layout where SetMode is used.<br>
But it looks like it was just used because of the documentation of
SetMode.<br>
It doesn't change the actual mode. It only confirms the original
mode.<br>
<br>
As :GetMode or .Mode doesn't exist, I can't check if it is
necessary.<br>
But if you say it's not, I can omit the SetMode line.<br>
<br>
It's something like this (haven't checked this excerpt, it's part of
large code block)<br>
local endrepeat=finale.FCEndingRepeat()<br>
if endrepeat:Load(1) then<br>
if endrepeat.IndividualPositioning then<br>
local
sep=endrepeat:CreateSeparatePlacements()
<br>
sep:SetMode(2) --==finale.SEPARMODE_ENDINGREPEAT which doesn't
exist<br>
local s=sep:AssureStaffPlacement(startstaff)<br>
s.HorizontalOffset2=0<br>
s:Save()<br>
end<br>
end <br>
<br>
Jan<br>
<br>
<div>Am 01.09.2022 um 20:51 schrieb Robert
Patterson:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I am intending to remove Lua access to
FCSeparatePlacements.SetMode, unless someone can convince me
otherwise. This mode is set by the relevant
...Ending:CreateSeparatePlacements function and it should
never be changed.</div>
<div><br>
</div>
<div>I am not certain why it was added to JW Lua.</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
JWLua mailing list
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
</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>