<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
I noticed a weird behaviour with the entry metrics:<br>
The FCEntryMetrics can be dependent on the selected layer, even if
all layers are visible.<br>
Attached is the test document. <br>
It has to do with consolidated rests - in the example the third note
entry (the last triplet rest).<br>
<br>
Test code:<br>
for e in eachentry(finenv.Region()) do<br>
local entrymetrics=finale.FCEntryMetrics()<br>
entrymetrics:Load(e)<br>
if e.MeasurePos==683 then --look at the last rest from the
tuplet<br>
print(entrymetrics.StemRightPosition,e.LayerNumber)<br>
end<br>
end<br>
<br>
If layer 1, 3 or 4 is selected (but layer 2 visible as well), the
script returns:<br>
Running [Unnamed Script] ======><br>
<b>640 1 --! is 617 if layer 2 is selected</b><br>
617 2<br>
<======= [Unnamed Script] succeeded (Processing time: 0.009 s).<br>
Looks like this in Finale:<br>
<img src="cid:part1.FC6CB80E.2DCB07FC@angermueller.com" alt=""><br>
<br>
If layer 2 is selected (but layer 1, 3 and 4 visible as well), the
script returns:<br>
Running [Unnamed Script] ======><br>
617 1<br>
616 2<br>
<======= [Unnamed Script] succeeded (Processing time: 0.009 s).<br>
Looks like this in Finale:<br>
<img src="cid:part2.EE928EE2.E7AE6D66@angermueller.com" alt=""><br>
<br>
In other words both look and print, of course, identical in Finale,
the only difference is that if there is a consolidated rest, Finale
will highlight the rest in the color of the current layer. But this
seems to affect the metrics calculation as well.<br>
<br>
Is there workaround?<br>
I haven't compared all entry metrics values yet. There may be a
workaround for this. I don't know.<br>
Probably it would be best if you could add the "Current Active
Layer" value to FCMiscDocPrefs which, AFAIK, isn't available at that
moment. Or have I overlooked it?<br>
<br>
Best,<br>
Jan<br>
</body>
</html>