<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Jan<br>
    <br>
    I think that CalcRightEntryMetricsPos is always correct<br>
    <span id="result_box" class="short_text" lang="en"><span class="">But
        Finale does not always display the values </span></span><span
      id="result_box" class="short_text" lang="en"><span class=""><span
          id="result_box" class="" lang="en"><span class=""> of</span></span></span></span><span
      id="result_box" class="short_text" lang="en"><span class=""><span
          id="result_box" class="" lang="en"><span class=""><span
              id="result_box" class="short_text" lang="en"><span
                class=""> "Smart shape placement"</span></span> .<br>
            If  </span></span></span></span>"Tips Avoid Staff Lines" is
    checked, <span id="result_box" class="short_text" lang="en"><span
        class="">Final recalculates the value<br>
        and </span></span>CalcRightEntryMetricsPos return this new
    value.<br>
    <br>
    Chris<br>
    <br>
    <div class="moz-cite-prefix">Le 16/11/2016 à 10:10, Jan Angermüller
      a écrit :<br>
    </div>
    <blockquote
      cite="mid:78458da6-6e59-6513-6e4f-ec0819d3c947@angermueller.com"
      type="cite">Hi Chris and Jari,<br>
      <br>
      <span id="result_box" class="short_text" lang="en"><span class=""><span
            id="result_box" class="" lang="en"><span class="">>The
              values of</span></span></span></span><span id="result_box"
        class="short_text" lang="en"><span class=""><span
            id="result_box" class="" lang="en"><span class=""><span
                id="result_box" class="short_text" lang="en"><span
                  class=""> "Smart shape placement"</span></span> are
              not always those displayed</span></span>.</span></span><br>
      <span id="result_box" class="short_text" lang="en"><span class="">>They
          depend on the parameter "Smart Slur Options -> Tips avoid
          Staff Lines By".</span></span><br>
      That's the solution!<br>
      Although the interesting thing in this case is that the values of
      "Smart Shape Placement" are indeed correct here (it's a 12 EVPU
      distance).<br>
      It's only the calculated distance
      (FCSmartShape:CalcRightEntryMetricsPos) that returns the wrong
      value.<br>
      But if I add the "Avoid Staff Lines" value to the wrong value, it
      becomes correct. <br>
      Or: if I set the "Avoid Staff Lines" value to 0 (which doesn't
      change the slur visually), the calculated vertical metrics from
      CalcRightEntryMetricsPos are also correct.<br>
      <br>
      So there must be a problem somewhere back in JW Lua or in the
      Plugin SDK that<b> accidentally adds the Avoid Stafff Lines values
        in this case.</b><br>
      <br>
      My workaround now: uncheck "Tips Avoid Staff Lines" or set the
      value to 0.</blockquote>
    <br>
  </body>
</html>