[JW Lua] Generating a new part possible ?

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Feb 16 18:52:44 CET 2016


Jan,

Unfortunatelly, creating new parts isn't currently available to the PDK. 
I'll send in a feature request to MM about this.


Best regards,

Jari Williamsson


On 2016-02-12 15:19, Jan Angermüller wrote:
> Hi Jari and all,
>
> is it already possible to generate a new part on the fly in JW Lua ?
> Well, I haven't succeeded yet. But I also have no clue where to start.
>
> For example:
> 1.) The FCPart constructor requires an ID:
> local part=finale.FCPart(ID)
> Which ID do I need ?
> Does the constant finale.PARTID_UNKNOWN make sense in this case ?
> Allthough it's labeled as for internal use only ?
>
> 2.) Do I need the SwitchTo/SwitchBack command for the creation ?
>
> 3.) How do I assign the staves to the part ?
> Do I need FCStaffSystems or FCStaffSystemLookup ?
>
> 4.) FCPart:SaveNew() always returned false in my test cases, probably
> because anything was missing in the lines before.
>
> 5.) A simple duplication of a part didn't work either, SaveNew()
> returned false:
> local part=finale.FCPart(finale.PARTID_CURRENT)
> print(part:SaveNew()) --prints false
>
> Any help would be greatly appreciated.
>
> Best,
> Jan
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list