<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
this question below has never been answered.<br>
But today Robert Patterson wrote on the Finale mailing list:<br>
"...when Finale makes it possible for plugins to unlink measure
number position/visibility. Currently plugins can't do it, but
Makemusic has stated that it is planned."<br>
So I assume this is the answer to the question: unlinking is simply
not possible at the moment.<br>
Or what do you think?<br>
<br>
Best,<br>
Jan<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 21.02.2017 um 17:59 schrieb Jan
Angermüller:<br>
</div>
<blockquote type="cite"
cite="mid:9dcbc817-20f5-b6a8-4b05-97d2530ed4d6@angermueller.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Jari et all,<br>
<br>
has anybody had success unlinking a FCSeparateMeasureNumber object
? (i.e. unlinking between score and parts)<br>
Below is the code that I use for relinking - it works fine so far.<br>
But unlinking ... ? When I change and save the
FCSeperateMeasureNumber object later in part scope, it always also
changes the main object from the score.<br>
Is this a JW Lua bug ? Or how can I separate score and part
objects here ?<br>
<br>
Best,<br>
Jan<br>
<br>
<br>
--Relink measure numbers<br>
local parts=finale.FCParts()<br>
parts:LoadAll()<br>
local region=finale.FCMusicRegion()<br>
region:SetCurrentSelection()<br>
local measregions=finale.FCMeasureNumberRegions()<br>
measregions:LoadAll()<br>
<br>
for m in each(measregions) do<br>
for i=region.StartSlot,region.EndSlot,1 do<br>
local j=region:CalcStaffNumber(i)<br>
for k=region.StartMeasure,region.EndMeasure,1 do<br>
local cell=finale.FCCell(k,j)<br>
local measnums=finale.FCSeparateMeasureNumbers()<br>
measnums:LoadAllInCell(cell)<br>
for measnum in each(measnums) do<br>
if measnum.RegionNumberID==m.ItemNo then<br>
local deleted=false <br>
for p in each(parts) do <br>
if not p:IsScore() <br>
and not p:IsCurrent()<br>
and p:IsStaffIncluded(j)
then --iterate through all parts, except score <br>
p:SwitchTo()<br>
local
measnums2=finale.FCSeparateMeasureNumbers()<br>
measnums2:LoadAllInCell(cell)<br>
for measnum2 in each(measnums2) do<br>
if
(measnum2.RegionNumberID==measnum.RegionNumberID) then<br>
measnum2:DeleteData()<br>
deleted=true<br>
end<br>
end<br>
p:SwitchBack()<br>
end <br>
end <br>
if deleted then<br>
measnum:ConnectCell(cell)<br>
measnum:AssignMeasureNumberRegion(m) <br>
measnum:SaveNew()<br>
end<br>
end<br>
end<br>
end<br>
end<br>
end<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
</body>
</html>