<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
yesterday there was a post with a Finale document on the Finale
Powerusers Group on Facebook (
<a class="moz-txt-link-freetext" href="https://www.facebook.com/groups/finalepower/1919405684943557/">https://www.facebook.com/groups/finalepower/1919405684943557/</a> )
which I used for testing some JW Lua features.<br>
I noticed a bug in calculating if a staff belongs to a group
(FCGroup:ContainsStaff, FCGroup:CalcStaffIndex).<br>
<br>
If you select measure 283 on page 40 on the staff labeled "IV" (the
one with the ffff at the end), both calculations return false / -1
instead of being part of group 16.<br>
Here is a video demo: <a class="moz-txt-link-freetext" href="https://www.youtube.com/watch?v=bUkhYWnU5lY">https://www.youtube.com/watch?v=bUkhYWnU5lY</a><br>
<br>
Test script (select the measure above and run script):<br>
local groups=finale.FCGroups()<br>
groups:LoadAll()<br>
for g in each(groups) do<br>
print(g:GetItemID(),g:ContainsStaff(finenv.Region().StartStaff),g:CalcStaffIndex(finenv.Region().StartStaff))<br>
end<br>
<br>
Running [Unnamed Script] ======><br>
1 false -1<br>
2 false -1<br>
3 false -1<br>
4 false -1<br>
10 false -1<br>
11 false -1<br>
12 false -1<br>
13 false -1<br>
14 false -1<br>
15 false -1<br>
16 false -1 --should return true and 1<br>
17 false -1<br>
<======= [Unnamed Script] succeeded (Processing time: 0.000 s).<br>
<br>
I assume that you can download the file via the link above,
otherwise I can mail you the document via PM.<br>
<br>
Best,<br>
Jan<br>
</body>
</html>