<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Many thanks<br>
</div>
<div class="moz-cite-prefix">Thomas<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Am 10.09.19 um 10:20 schrieb Jan Angermüller:<br>
</div>
<blockquote type="cite" cite="mid:f090f6ba-c9ee-f56b-2013-c7c5bf4dc989@angermueller.com">
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">
<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" moz-do-not-send="true">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" moz-do-not-send="true">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
</blockquote>
<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>
</body>
</html>