[JW Lua] Access list of available articulations
Jan Angermüller
jan at angermueller.com
Sat Aug 8 13:49:08 CEST 2015
>If I instantiate a FCArticulationDefs, it gives me an empty collection.
Yes, you need to "fill" the collection, otherwise it will be an empty collection.
local artdefs=finale.FCArticulationDefs()
artdefs:LoadAll()
print(artdefs.Count)--number of articulations in selection dialog
for artdef in each(artdefs) do
... do something with the articulation definition artdef ...
end
Viele Grüße,
Jan Angermüller
Am 08.08.2015 um 13:14 schrieb Thomas Weber:
> Thanks for the weekend reply!
>
> Isn't FCArticulationDefs just an abstract class to store any set of FCArticulationDef items? If I instantiate a FCArticulationDefs, it gives me an empty collection. At least
>
> finale.FCArticulationDefs():GetCount()
>
> gives me 0.
>
> Next attempt: I realize finale.FCArticulationDefs is a table, but there's nothing in there:
>
> for k in pairs(finale.FCArticulationDefs) do
> print(k)
> end
>
> There *is* an __index entry in the metatable, which however is a function so that I can't explore further what is accessible through that metamethod. I definitely can't use it like an instantiated FCArticulationDefs - there is e.g. no GetCount() member:
>
> finale.FCArticulationDefs.GetCount == nil
>
> gives me "true".
>
> Any further help is much appreciated.
>
> Grüße
> Thomas Weber
>
>
>
> Am 08.08.2015 um 10:55 schrieb Jan Angermüller:
>> FCArticulationDefs: all articulations from the selection dialog
>>
>> Am 08.08.2015 um 08:56 schrieb Thomas Weber:
>>> Dear Jari et al.,
>>>
>>> I couldn't find a way of accessing a list of all articulations available in the Articulation Selection dialog box with JW Lua. Is it possible at all? Currently, I can only see how I would filter out all *used* articulations, but I'd obviously miss the defined but unused ones.
>>>
>>> Another unrelated question: On the Wiki, I saw version 0.40 was mentioned[1]. On the download page, I can currently only see version 0.39. Where can one obtain the latest and greatest?
>>>
>>> Many thanks
>>> Thomas Weber
>>>
>>>
>>> [1] http://www.jwmusic.nu/jwplugins/wiki/doku.php?id=jwlua:quickscripts#swap_metatool_key_assignment
>>>
>>> _______________________________________________
>>> JWLua mailing list
>>> JWLua at jwmusic.nu
>>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>>>
>>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
--
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
www.angermueller.com
More information about the JWLua
mailing list