<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
busy with some metrics beta testing today...<br>
<br>
When reading metrics from hairpins that go past measure boundaries
(e.g. 2 measures),<br>
I can't read the right position from the hairpin. It always returns
false. <br>
Reading the values from hairpins within one measure, works fine,<br>
also reading the left value works fine.<br>
<br>
This is the test script that prints the left and right position <br>
of cresc./dim. hairpins in the selected region:<br>
<br>
local region = finenv.Region()<br>
local marks = finale.FCSmartShapeMeasureMarks()<br>
marks:LoadAllForRegion(region)<br>
for mark in each(marks) do<br>
local leftpoint=finale.FCPoint(1,1)<br>
local rightpoint=finale.FCPoint(1,1)<br>
local smartshape = mark:CreateSmartShape()<br>
if (smartshape:GetShapeType() == finale.SMARTSHAPE_CRESCENDO)<br>
or (smartshape:GetShapeType() == finale.SMARTSHAPE_DIMINUENDO)
then <br>
print(smartshape:CalcLeftCellMetricPos(leftpoint),<br>
smartshape:CalcRightCellMetricPos(rightpoint),<br>
"Left:",leftpoint.X,<br>
"Right:",rightpoint.X)<br>
end<br>
end<br>
<br>
For the attached screenshot, it prints:<br>
<br>
true true Left: 2631 Right: 2786 -- first cresc.<br>
true true Left: 3601 Right: 3703 -- second cresc.<br>
true <b>false </b>Left: 4306 Right: 1 -- third cresc.<br>
true <b>false </b>Left: 4306 Right: 1 -- duplicate entry
of third cresc. (will be omitted, when calling
marks:LoadAllForRegion(region,true) )<br>
<br>
I get the same result from the Finale default document<br>
with no no entries, except a cresc. over two measures.<br>
<br>
Any hints ? Looks like a bug for me.<br>
<br>
Jan<br>
</body>
</html>