<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
no, unfortunately that doesn't solve it. I had tried the same
before.<br>
<br>
Isn't the entry metrics rebuilt anyway when a Finale document is
loaded?<br>
That's why I attached both document files: the defect one and the
working one.<br>
<br>
Best,<br>
Jan<br>
<br>
<div class="moz-cite-prefix">Am 12.08.2017 um 20:56 schrieb Jari
Williamsson:<br>
</div>
<blockquote type="cite"
cite="mid:f5b67dbf-253e-0c58-1b49-2ee5635d5fb3@mailbox.swipnet.se">Jan,
<br>
<br>
I guess the layout metrics in Finale requires an update.
<br>
<br>
Call the static metod FCNoteEntry::MarkEntryMetricsForUpdate()
before the call to see if that fixes the issue. Let me know how it
goes.
<br>
<br>
<br>
Best regards,
<br>
<br>
Jari Williamsson
<br>
<br>
<br>
On 2017-08-12 16:47, Jan Angermüller wrote:
<br>
<blockquote type="cite">Jari,
<br>
<br>
FCNote:CalcRightsidePlacement() sometimes returns incorrect
results.
<br>
I have attached two identical looking first measures with one
note on the left and on the right side, so I would expect a
false and a true result when calling CalcRightsidePlacement().
<br>
<br>
But it doesn't:
<br>
the "OK" document return false / true while the "Error" document
returns false / false.
<br>
The note flags look identical to me. (or did I overlook
anything?)
<br>
The "OK" document was derived directly from the default
document, the "Error" document is an excerpt from an orchestra
score.
<br>
<br>
I don't see a workaround for this at the moment.
<br>
If I had direct access to the downstem 2nd and the upstem 2nd
flag, I could write something.
<br>
But currently these flags are not available for reading/writing.
<br>
<br>
Code snippet:
<br>
local musicregion=finale.FCMusicRegion()
<br>
musicregion:SetFullDocument()
<br>
for entry in eachentry(musicregion) do
<br>
for note in each(entry) do
<br>
print(note:CalcRightsidePlacement())
<br>
end
<br>
end
<br>
<br>
Running [Unnamed Script] ======> --OK document
<br>
false
<br>
true
<br>
<======= [Unnamed Script] succeeded (Processing time: 0.005
s).
<br>
<br>
Running [Unnamed Script] ======> --Error Document
<br>
false
<br>
false --!!wrong!!
<br>
<======= [Unnamed Script] succeeded (Processing time: 0.005
s).
<br>
<br>
For file size reasons I have attached the files in Fin2012
format. They were originally Fin2014.5 files.
<br>
<br>
Best,
<br>
Jan
<br>
<br>
<br>
_______________________________________________
<br>
JWLua mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<br>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
<br>
<br>
</blockquote>
<br>
<br>
<br>
_______________________________________________
<br>
JWLua mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<br>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
<br>
</blockquote>
<br>
</body>
</html>