[JW Lua] New bar

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Thu Oct 24 16:00:45 CEST 2013


On 2013-10-24 14:17, Dave Foster wrote:
> Hi Jari,
>
> How do you add a new bar at the end (or insert in the middle)?
> I can create a new FCMeasure object, but it doesn't show up anywhere:
>
> local measures = finale.FCMeasures()
> measures:LoadAll()
> print(measures:GetCount())
> local newMeasure = finale:FCMeasure()
> newMeasure:Save()

This would return false, since the location to save to is unknown.
However, SaveNew() would return false as well in this case.

Finale has a specific plug-in API for inserting measures, I believe 
that's used for appending measures as well. (The API for deleting 
measures is available to JW Lua already, as a static method in FCMeasures.)

I'll try to add that to the next beta.

> print(measures:GetCount())

Even if the creation was a success, this would always return the same as 
the last LoadAll() call. The collection isn't "live".


Best regards,

Jari Williamsson






More information about the JWLua mailing list