<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Really great, Chris !<br>
I was missing the NoteID in my script. Never noticed that it existed
in FCSmartShapeSegment.<br>
There still seems to be a tiny difference to a manually created
tabslide/glissando, but I don't know if this is relevant:<br>
it now lists as "Attach to Notes" instead of the "Attach to
Noteheads" when created manually.<br>
<br>
Best,<br>
Jan<br>
<br>
<div class="moz-cite-prefix">Am 28.06.2016 um 20:57 schrieb Chris:<br>
</div>
<blockquote
cite="mid:4f93e5d8-6cf9-cf59-3163-dc3a7cfb9a2b@gmail.com"
type="cite"><span id="result_box" class="" lang="en"><span
class="">local function
createSmartShape(staff,measure,leftnoteentry,rightnoteentry)<br>
local smartshape = finale.FCSmartShape()<br>
smartshape.ShapeType = finale.SMARTSHAPE_GLISSANDO <br>
smartshape.EntryBased = true<br>
smartshape.MakeHorizontal = false<br>
smartshape.BeatAttached= false<br>
smartshape.PresetShape = true<br>
smartshape.Visible = true<br>
smartshape.LineID= 1<br>
<br>
local leftseg = smartshape:GetTerminateSegmentLeft()<br>
leftseg:SetMeasure(measure)<br>
leftseg.Staff = staff<br>
leftseg:SetEntry(leftnoteentry)<br>
leftseg.NoteID = 1<br>
<br>
local rightseg = smartshape:GetTerminateSegmentRight()<br>
rightseg:SetMeasure(measure)<br>
rightseg.Staff = staff<br>
rightseg:SetEntry(rightnoteentry)<br>
rightseg.NoteID = 1<br>
<br>
smartshape:SaveNewEverything(NULL,NULL)<br>
end<br>
<br>
local noteentrycell = finale.FCNoteEntryCell(1, 1)<br>
noteentrycell:Load()<br>
local leftnoteentry =
noteentrycell:FindEntryStartPosition(0,1)<br>
local rightnoteentry =
noteentrycell:FindEntryStartPosition(2048,1)<br>
<br>
createSmartShape(1,1,leftnoteentry,rightnoteentry)</span></span></blockquote>
<br>
</body>
</html>