[JW Lua] FCNoteEntryCell:SetFindHidden doesn't work

Jan Angermüller jan at angermueller.com
Tue Mar 6 13:12:55 CET 2018


Jari,

FCNoteEntryCell:SetFindHidden doesn't seem to affect the search of 
hidden notes.
It doesn't matter if I set it to true or false, it both times also 
returns hidden notes in the search.

Test document attached and script below.

It should return measure pos 0 (i.e. where the visible note is), but it 
returns 2048.

Best,
Jan

local noteentrycell=finale.FCNoteEntryCell(1,1)
noteentrycell:Load()
noteentrycell:SetFindHidden(false)
noteentrycell:SetFindVisible(true)
local closestnoteentry=noteentrycell:FindClosestPos(2048)
print(closestnoteentry.Measure,closestnoteentry.MeasurePos,closestnoteentry.Visible)

Running [Unnamed Script] ======>
1 2048 false
<======= [Unnamed Script] succeeded (Processing time: 0.000 s).


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20180306/0e1c5acb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nmennegigacgilhm.png
Type: image/png
Size: 2877 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20180306/0e1c5acb/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: findhiddennotes.mus
Type: application/octet-stream
Size: 18009 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20180306/0e1c5acb/attachment-0001.obj>


More information about the JWLua mailing list