<div dir="ltr">LoadAll does not work with FCStaffStyleAssigns. Use LoadAllForItem.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 24, 2023 at 10:06 AM Aaron Sherber <<a href="mailto:aaron@sherber.com">aaron@sherber.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi all,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">If I open a document that has staff style assignments and do:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div style="color:rgb(0,0,0);font-family:Consolas,"Courier New",monospace;font-size:12px;line-height:16px;white-space:pre-wrap"><div><span style="color:rgb(0,0,255)">local</span> <span style="color:rgb(0,16,128)">count</span> = <span style="color:rgb(9,134,88)">0</span></div><div><span style="color:rgb(175,0,219)">for</span> <span style="color:rgb(0,16,128)">a</span> <span style="color:rgb(175,0,219)">in</span> <span style="color:rgb(0,16,128)">loadall</span>(<span style="color:rgb(0,16,128)">finale</span>.<span style="color:rgb(121,94,38)">FCStaffStyleAssigns</span>()) <span style="color:rgb(175,0,219)">do</span></div><div> <span style="color:rgb(0,16,128)">count</span> = <span style="color:rgb(0,16,128)">count</span> + <span style="color:rgb(9,134,88)">1</span></div><div><span style="color:rgb(175,0,219)">end</span></div></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">'count' is 0 at the end of the loop -- it appears that no assignments are being loaded. It looks like LoadAllForItem() works as expected, but not LoadAll(). Is this a bug in the PDK?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks,<br>Aaron.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>