<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Jan,</div><div class=""><br class=""></div>So I looked at it and I’m at the same point. Thanks though, for pointing out the weird semantic of the endpoints.<div class=""><br class=""></div><div class="">I’ll try to phrase it differently: <b class="">if</b> I just want to change the height of a non-edited slur and nothing else, right now, I would need to know the other 2 (or 3) parameters of the control points. Since to change the height (ctrlpoint:SetControlPoint1OffsetY() and ctrlpoint:SetControlPoint2OffsetY()) I need to put the slur in "ctrlpoint:SetCustomShaped(true)”, as soon as I do it, all parameters are reset to zero.</div><div class=""><br class=""></div><div class="">In your example, you’re giving new values to all 4 parameters, which I understand.</div><div class=""><br class=""></div><div class="">I’m looking for a way to make an actual “read out” of the default values. The only way that I can see right now is to move manually the slur (and back to its original position) and then, Finale considers that the slur is “custom” and I can get through LUA an actual read out of all 4 parameters of the controlpoints.</div><div class=""><br class=""></div><div class="">Here’s a snippet:</div><div class=""><br class=""></div><div class=""><div class="">local marks = finale.FCSmartShapeMeasureMarks()</div><div class="">marks:LoadAllForRegion(finenv.Region(), true)</div><div class="">for mark in each(marks) do</div><div class="">     local smartshape = mark:CreateSmartShape()</div><div class="">     if (smartshape ~= nil) and smartshape:IsSlur() then</div><div class="">         local leftseg=smartshape:GetTerminateSegmentLeft()</div><div class="">         local rightseg=smartshape:GetTerminateSegmentRight()</div><div class="">         ctrlpoint=smartshape:GetCtrlPointAdjust()</div><div class=""><br class=""></div><div class="">-- ctrlpoint:SetCustomShaped(true)-- if used on a non-edited slur, I get a flat line (and zero for all parameters)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">print("vertical left =", ctrlpoint:GetControlPoint1OffsetY())</div><div class="">print("vertical right =", ctrlpoint:GetControlPoint2OffsetY())</div><div class="">print("custom =",ctrlpoint:GetCustomShaped())</div><div class=""><br class=""></div><div class="">        -- smartshape:Save()</div><div class="">     end</div><div class="">end</div></div><div class=""><br class=""></div><div class="">This will return:</div><div class=""><br class=""></div><div class=""><div class="">vertical left = 0</div><div class="">vertical right = 0</div><div class="">custom = true</div></div><div class=""><br class=""></div><div class="">for a non-edited slur,</div><div class=""><br class=""></div><div class="">And this, on a manually edited slur:</div><div class=""><br class=""></div><div class=""><div class="">vertical left = 60 (actual read out)</div><div class="">vertical right = 60 (actual read out)</div><div class="">custom = true</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 15, 2017, at 11:17, Simon Leclerc <<a href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thank you very much, Jan. I’ll check it later today.<div class=""><br class=""></div><div class="">And yes, I knew the height was controlled by the ctrlpoints, but since I had trouble accessing them on a non-edited slur, I put everything together. I’ll try with your suggested semantic.</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 15, 2017, at 10:44, Jan Angermüller <<a href="mailto:jan@angermueller.com" class="">jan@angermueller.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Changing the "height" is not changed by the endpoints, but by the
    controlpoints (or do I misunderstand you?).<br class="">
    And changing the ctrlpoints of the slurs is possible. The code
    snippet is in the below mentioned PDF under 17.)<br class="">
    SetCustomOffset has a bit weird semantics: <br class="">
    if it's the left segment, you must set it to false, if it's the
    right segment, you must set it to true.<br class="">
    <br class="">
    <br class="">
    <div class="moz-cite-prefix">Am 15.04.2017 um 16:32 schrieb Simon
      Leclerc:<br class="">
    </div>
    <blockquote cite="mid:B980DD76-ABC9-497F-8D81-E7783C939357@prodsl.ca" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      Thanks for the input Jan.
      <div class=""><br class="">
      </div>
      <div class="">But I noticed in Jari’s “Change”, that for slurs, he
        manages to change only the height of a non-edited slur.</div>
      <div class="">The slur then becomes “custom”.</div>
      <div class=""><br class="">
      </div>
      <div class="">Am I missing the right way to do this?</div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
        <div class="">
          <blockquote type="cite" class="">
            <div class="">On Apr 15, 2017, at 09:43, Jan Angermüller
              <<a moz-do-not-send="true" href="mailto:jan@angermueller.com" class="">jan@angermueller.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
              <div bgcolor="#FFFFFF" text="#000000" class=""> This is a
                known bug of JW Lua going back to 2014 with
                unfortunately no workaround at the moment.<br class="">
                The same goes for BreakOffset on hairpins.<br class="">
                A bit more info can be found on 7.) and 17.) on my Lua
                bug/wish list: <br class="">
                <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://elbsound.studio/img/JWLuaBugAndWishList.pdf">https://elbsound.studio/img/JWLuaBugAndWishList.pdf</a>
                <br class="">
                <br class="">
                Jan<br class="">
                <br class="">
                <br class="">
                <div class="moz-cite-prefix">Am 15.04.2017 um 15:31
                  schrieb Simon Leclerc:<br class="">
                </div>
                <blockquote cite="mid:F2E77505-4286-4D6D-B3F5-47030211FF3F@prodsl.ca" type="cite" class="">
                  <meta http-equiv="Content-Type" content="text/html;
                    charset=windows-1252" class="">
                  Hi to all,
                  <div class=""><br class="">
                  </div>
                  <div class="">
                    <div style="margin: 0px; line-height: normal;" class="">I’m having difficulties gathering the
                      data surrounding un-altered slurs (or default).</div>
                    <div style="margin: 0px; line-height: normal;
                      min-height: 14px;" class=""><br class="">
                    </div>
                    <div style="margin: 0px; line-height: normal;" class="">The “GetCtrlPointAdjust()” returns zero
                      for all parameters if the slur is in a
                      “SetCustomShaped(false)” state, and resets every
                      parameters to zero as soon as you set it to
                      “SetCustomShaped(true)”.</div>
                    <div style="margin: 0px; line-height: normal;
                      min-height: 14px;" class=""><br class="">
                    </div>
                    <div style="margin: 0px; line-height: normal;" class="">If I alter the slur manually (just by
                      moving it up or down and back to its original
                      position) I then have access to the data.</div>
                    <div style="margin: 0px; line-height: normal;
                      min-height: 14px;" class=""><br class="">
                    </div>
                    <div style="margin: 0px; line-height: normal;" class="">The same goes for the
                      “GetEndpointOffsetX()”, but for those, I can
                      obtain them via “CalcLeft/RightEntryMetricPos()”.</div>
                    <div style="margin: 0px; line-height: normal;
                      min-height: 14px;" class=""><br class="">
                    </div>
                    <div style="margin: 0px; line-height: normal;" class="">Is there a workaround to “fool” JW Lua
                      and Finale into thinking the slur has been
                      modified without loosing all the data (inset,
                      vertical point, etc…)?</div>
                    <div class=""> <span class="Apple-style-span" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-collapse: separate; border-spacing: 0px;">
                        <div style="word-wrap: break-word;
                          -webkit-nbsp-mode: space; -webkit-line-break:
                          after-white-space;" class="">
                          <div class=""><br class="Apple-interchange-newline">
                            <br class="">
                          </div>
                          <div class=""><br class="">
                          </div>
                          <div class=""><br class="">
                          </div>
                          <div class="">Simon Leclerc</div>
                          <div class="">60, Mirabelle</div>
                          <div class="">Ste-Agathe-des-Monts, Québec</div>
                          <div class="">J8C 0W9</div>
                          <div class=""><a moz-do-not-send="true" href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a></div>
                          <div class=""><br class="">
                          </div>
                        </div>
                      </span><br class="Apple-interchange-newline" style="font-family: Helvetica; font-style:
                        normal; font-variant-ligatures: normal;
                        font-variant-position: normal;
                        font-variant-caps: normal; font-variant-numeric:
                        normal; font-variant-alternates: normal;
                        font-variant-east-asian: normal; font-weight:
                        normal; letter-spacing: normal; line-height:
                        normal; orphans: 2; text-align: -webkit-auto;
                        text-indent: 0px; text-transform: none;
                        white-space: normal; widows: 2; word-spacing:
                        0px; -webkit-text-stroke-width: 0px;">
                      <br class="Apple-interchange-newline">
                    </div>
                    <br class="">
                  </div>
                  <br class="">
                  <fieldset class="mimeAttachmentHeader"></fieldset>
                  <br class="">
                  <pre class="" wrap="">_______________________________________________
JWLua mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
                </blockquote>
                <br class="">
              </div>
              _______________________________________________<br class="">
              JWLua mailing list<br class="">
              <a moz-do-not-send="true" href="mailto:JWLua@jwmusic.nu" class="">JWLua@jwmusic.nu</a><br class="">
              <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 class="">
            </div>
          </blockquote>
        </div>
        <br class="">
        <div class="">
          <span class="Apple-style-span" style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;" class="">
              <div class=""><br class="Apple-interchange-newline">
                <br class="">
              </div>
              <div class=""><br class="">
              </div>
              <div class=""><br class="">
              </div>
              <div class="">Simon Leclerc</div>
              <div class="">60, Mirabelle</div>
              <div class="">Ste-Agathe-des-Monts, Québec</div>
              <div class="">J8C 0W9</div>
              <div class=""><a moz-do-not-send="true" href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a></div>
              <div class=""><br class="">
              </div>
            </div>
          </span><br class="Apple-interchange-newline" style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
          <br class="Apple-interchange-newline">
        </div>
        <br class="">
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">JWLua mailing list<br class=""><a href="mailto:JWLua@jwmusic.nu" class="">JWLua@jwmusic.nu</a><br class=""><a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br class=""></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="Apple-interchange-newline"><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Simon Leclerc</div><div class="">60, Mirabelle</div><div class="">Ste-Agathe-des-Monts, Québec</div><div class="">J8C 0W9</div><div class=""><a href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a></div><div class=""><br class=""></div></div></span><br class="Apple-interchange-newline" style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">
</div>
<br class=""></div></div>_______________________________________________<br class="">JWLua mailing list<br class=""><a href="mailto:JWLua@jwmusic.nu" class="">JWLua@jwmusic.nu</a><br class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu<br class=""></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="Apple-interchange-newline"><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Simon Leclerc</div><div class="">60, Mirabelle</div><div class="">Ste-Agathe-des-Monts, Québec</div><div class="">J8C 0W9</div><div class=""><a href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a></div><div class=""><br class=""></div></div></span><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">
</div>
<br class=""></div></div></body></html>