<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
>2. smartshape:SaveNewEverything( NULL, NULL ) saves the
smartshape as well as smartshape:SaveNewEverything(
>StartEntry,EndEntry ) although according to the documentation,
only the second version would be correct
<br>
<br>
I have already seen some Finale documents that only had a valid
StartEntry value and a nil value as EndEntry. But I don't know if
this was valid or if those were all corrupt documents. At least you
can't rely on that a slur smart shape will return valid start and
end entries. I'd second that the second version is correct for slur
smartshapes.<br>
<br>
Also note that this only valid for note-attached smartshapes, for
measure-attached smartshapes (hairpins) the documentation says:
"pFirstEntry and pLastEntry should be NULL."<br>
<br>
<br>
<br>
>3. the FCSmartShape:SaveNewEverything documentation says: "For
note-attached smart shapes, the frame collection that >contains
the entries need to be saved after the successful return from this
method.". How do I save a frame collection? <br>
Frames are the collection of note entries in a measure. E.g.
ctrl-click a measure while Speedy Entry is selected, then the "Edit
Frame" dialog opens in Finale. To save a frame: <br>
<br>
for e in eachentrysaved( .... ) <br>
<br>
or <br>
<br>
for e in each( noteentrycell ) <br>
... <br>
end<br>
noteentrycell :Save() <br>
<br>
So the best idea is to start the creation of the smartshape within
such a for-loop on note entries. <br>
I assume that this will also set the slur flags for the note entry.<br>
Note: You might need a nested loop if the slur spans two measures to
be able to save both the start and end frame.<br>
FCNoteEntry.SmartShapeFlag is (or should be) true when the entry has
a slur. BTW, the Edit Frame doesn't have a "SmartShape" attribute,
but only a "Slur" attribute. I think JW Lua's SmartShapeFlag
actually means this slur attribute.<br>
<br>
Jan<br>
<br>
</body>
</html>