[JW Lua] FCStaffStyleAssigns

Thomas Weber thomas.weber at notengrafik.com
Thu Sep 12 15:33:43 CEST 2019


Tried it out now – that code is very helpful.  The cmper argument (for LoadAllForItem()) is something I don't quite grasp.  Jari once explained it, but it's not immediately clear to me what number to put there.  I assume I'd have to work with JWLua more regularly to get an intuition what numbers should go in there.

Many thanks
Thomas


Am 10.09.19 um 10:20 schrieb Jan Angermüller:
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<mailto:JWLua at jwmusic.nu>
http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu




--

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20190912/66eb91d4/attachment.html>


More information about the JWLua mailing list