[JW Lua] FCStaffStyleAssigns
Jan Angermüller
jan at angermueller.com
Tue Sep 10 10:20:41 CEST 2019
Use LoadAllForItem(staffnumber) instead:
for i=region.StartSlot,region.EndSlot,1 do
local j=region:CalcStaffNumber(i)
local staffstyles=finale.FCStaffStyleAssigns()
staffstyles:LoadAllForItem(j)
for sa in each(staffstyles) do
....
end
end
Am 10.09.2019 um 09:47 schrieb Thomas Weber:
>
> To generate "statistics" which staff styles are used in a document, I
> hoped i could do something like the following:
>
> local styleAssigns = finale.FCStaffStyleAssigns()
> styleAssigns:LoadAll()
> for styleAssign in each(styleAssigns) do
> -- do something
> end
>
> However, styleAssigns.Count is 0, even though the document I'm trying
> this switches between multiple staff styles.
>
> How does one work with these FCStaffStyleAssign[s] classes?
>
> Thomas
>
>
> --
>
> Notengrafik Berlin GmbH
> HRB 150007
>
> UstID: DE 289234097
> Geschäftsführer:
> Thomas Weber und Werner J. Wolff
>
> fon: +49 30 25359505
> Friedrichstraße 23a
> 10969 Berlin
>
> notengrafik.com
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20190910/0d18190a/attachment.htm>
More information about the JWLua
mailing list