<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Thank you very much Jari, for the info!<br>
    It's really a pity that MM doesn't give out the Finale PDK anymore,
    so that we can't help you finding it out.<br>
    As a pretty cumbersome, but possible workaround it would be great if
    you could supply FCSlurContours and FCSmartShapePlacement. Currently
    I am using an estimation of where the slurs are. But if the slur
    settings don't use the default values, I have to manually update all
    these parameters.<br>
    <br>
    Best,<br>
    Jan<br>
    <br>
    <div class="moz-cite-prefix">Am 27.07.2017 um 19:59 schrieb Jari
      Williamsson:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a4421d98-b3c5-5859-bec2-933195dde71d@mailbox.swipnet.se">Jan,
      <br>
      <br>
      Smartshapes over multiple systems creates additional data objects
      of the FCSmartShapeSegment class.
      <br>
      <br>
      I don't have good documentation on smartshapes on my end, so it's
      lots of trial-and-error for me.
      <br>
      <br>
      <br>
      Best regards,
      <br>
      <br>
      Jari Williamsson
      <br>
      <br>
      <br>
      On 2017-07-26 12:24, Jan Angermüller wrote:
      <br>
      <blockquote type="cite">Jari et al,
        <br>
        <br>
        when calculating the metrics of a slur that goes over several
        staff systems, the metrics are only calculated correctly for the
        first staff system.
        <br>
        This was reported as a bug in 2014 (mail from 2014-06-28), but
        has never  been replied.
        <br>
        <br>
        <br>
        <br>
        The test script below returns these metric values for the slur
        start positions in measure 3 and 4.
        <br>
        <br>
        Running [Unnamed Script] ======>
        <br>
        Measure: 3 Calculation ok? true X: 2020 Y: 2976
        <br>
        Measure: 4 Calculation ok? true X: 2020 Y: 2976    ---> wrong
        values, it's not from measure 3, but from measure 4.
        <br>
        <======= [Unnamed Script] succeeded (Processing time: 0.001
        s).
        <br>
        <br>
        Has anybody found a workaround?
        <br>
        Or, Jari, have you had time to look in this issue? Is it a bug
        in the Finale PDK?
        <br>
        <br>
        Best,
        <br>
        Jan
        <br>
        <br>
        function GetEntryToSmartshape(id,measure,staff)
        <br>
             local notecell=finale.FCNoteEntryCell(measure,staff)
        <br>
             notecell:Load()
        <br>
             for e in each(notecell) do
        <br>
                if (e.EntryNumber == id)then
        <br>
                    return e,e.EntryNumber
        <br>
                end
        <br>
             end
        <br>
             return nil,-1
        <br>
        end
        <br>
        <br>
        local region = finale.FCMusicRegion()
        <br>
        region:SetFullDocument()
        <br>
        local marks = finale.FCSmartShapeMeasureMarks()
        <br>
        marks:LoadAllForRegion(region)
        <br>
        for mark in each(marks) do
        <br>
             local smartshape = mark:CreateSmartShape()
        <br>
             if smartshape:IsSlur() then
        <br>
                 local leftpoint=finale.FCPoint(1,1)
        <br>
                 local leftseg=smartshape:GetTerminateSegmentLeft()
        <br>
                 local
entry=GetEntryToSmartshape(leftseg.EntryNumber,leftseg.Measure,leftseg.Staff)<br>
                 print("Measure:",mark.Measure,"Calculation
        ok?",smartshape:CalcLeftEntryMetricPos(entry,leftpoint),
        <br>
                           "X:",leftpoint.X,
        <br>
                           "Y:",leftpoint.Y)
        <br>
            end
        <br>
        end
        <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>
    </blockquote>
    <br>
  </body>
</html>