<div dir="ltr"><div>As near as I can tell, I believe the chief issue you have is that the slur is beat-attached. This is a legacy slur mode, no longer well-supported in the UI, though it has its uses. (For example, I use them as arpeggiation ties and lv ties. I also use them when a measure is partially hidden with alt notation, because note-attached slurs get hidden on the entire measure if the first part of the measure is hidden.)</div><div><br></div><div>Finale v1, iirc, did not have smart shapes at all.</div><div>Finale v2 had smart shapes but only beat-attached smart shapes.</div><div><br></div><div>I'm guessing the file was imported from v2. If so, all slurs will be legacy beat-attached slurs. The best tool I know of to convert beat-attached to note-attached is one of the TGTools plugins. Of course, it should be possible to write a lua script to do it.<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 3, 2023 at 5:20 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">jan@angermueller.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Robert,<br>
<br>
I was just playing a bit the new FCSmartShapeEntryConnectStyle-stuff
as I received an old Finale score where the slur placement wasn't
setup yet (all values set to 0).<br>
I don't know what Finale version this score was created in, probably
in Finale v1 or v2. <br>
The user wrote that he has been using Finale since v1.0.<br>
The file info lists creation date and application as "unknown". <br>
However, the score was imported into Finale 27 and sent to me as a
Finale 27 document.<br>
<br>
When I run the script below in Finale 27, the default slur placement
settings are correctly written into the slur placement dialog. <br>
However, the preview images in the slur placement dialog are not
updated - except for the very first image (slur above downstem
notes).<br>
And when I attach a new slur it still uses the old 0,0 values
instead of the values written.<br>
<br>
It seems like only the images of the first dialog are updated (slur
above downstem notes) and only the first four values are actually
used from Finale - although all other values look fine in the Slur
Placement dialog.<br>
Could it be that there is something missing in your code that
actually writes the new values (after value 1-4) more deeply into
Finale? <br>
<br>
Below is my test code.<br>
For trying to track down the problem I have reloaded the
FCSmartShapePrefs for each value pair and immediately saved it.<br>
But it's the same result when I load it only once and save it after
the loop.<br>
<br>
Attached is the file excerpt and here is a screencam video that
shows the problem:<br>
<a href="https://www.youtube.com/watch?v=LPa0LeALXCs" target="_blank">https://www.youtube.com/watch?v=LPa0LeALXCs</a><br>
I have tested it both with RGP Lua v0.66 and v0.67. Same result.<br>
<br>
Any ideas?<br>
<br>
local defvalues=<br>
{0,12,0,12,<br>
12,-24,-12,-24,<br>
0,-12,0,-12,<br>
12,24,-12,24,<br>
12,-24,-12,-24,<br>
6,4,-12,-48,<br>
8,0,-6,48,<br>
0,-3,-24,-3,<br>
0,3,0,9,<br>
0,12,0,12,<br>
0,-12,0,-12,<br>
24,-24,<br>
24,-24,<br>
24,24,<br>
0,8,0,8,<br>
0,-8,0,-8}<br>
<br>
local numentr=29<br>
local index=1<br>
local i<br>
for i=1,numentr do<br>
local prefs=finale.FCSmartShapePrefs()<br>
prefs:LoadFirst()<br>
local a
=prefs:CreateEntryConnectStyle(finale.SSENTCNCTSTYLETYPE_SLURS,i-1)<br>
if a then<br>
a:SetHorizontalOffset(defvalues[index])<br>
a:SetVerticalOffset(defvalues[index+1])<br>
prefs:SaveEntryConnectStyle(a,finale.SSENTCNCTSTYLETYPE_SLURS,i-1 )
<br>
prefs:Save()<br>
end<br>
index=index+2<br>
end<br>
<br>
Jan<br>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>