Plugin can set selection but does not see what’s in it
If I run SelectTest.qml I get the desired selection , but I invariably (I tried cursor.rewinds etc) get :
Debug: Hello World
Debug: el.length = 0
What am I doing wrong?
EDIT: If I select the measure manually & comment out the programmatic selection
//curScore.selection.selectRange(startTick, endTick+1, 0, curScore.nstaves)
it works: Debug: el.length = 21 (or whatever > 0)