<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Use LoadAllForItem(staffnumber) instead:<br>
<br>
for i=region.StartSlot,region.EndSlot,1 do<br>
local j=region:CalcStaffNumber(i)<br>
local staffstyles=finale.FCStaffStyleAssigns()<br>
staffstyles:LoadAllForItem(j)<br>
for sa in each(staffstyles) do<br>
....<br>
end<br>
end<br>
<br>
<div class="moz-cite-prefix">Am 10.09.2019 um 09:47 schrieb Thomas
Weber:<br>
</div>
<blockquote type="cite"
cite="mid:6150fb13-196a-c6ce-1df7-9e771a33c72d@notengrafik.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>To generate "statistics" which staff styles are used in a
document, I hoped i could do something like the following:</p>
<blockquote>
<p>local styleAssigns = finale.FCStaffStyleAssigns()<br>
styleAssigns:LoadAll()<br>
for styleAssign in each(styleAssigns) do<br>
-- do something<br>
end<br>
</p>
</blockquote>
<p>However, styleAssigns.Count is 0, even though the document I'm
trying this switches between multiple staff styles.</p>
<p>How does one work with these FCStaffStyleAssign[s] classes?</p>
<p>Thomas<br>
</p>
<p><br>
</p>
<pre class="moz-signature" cols="0">--
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</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
</body>
</html>