Snippet “select everything on the score, filter the [ ] by element type” has issues

• Aug 28, 2022 - 09:08

(Not sure where to report this)
This snippet in “Boilerplates, snippets and use cases”
https://musescore.org/en/node/320673#select_everything_on_the_score,filter_the[_]_by_element_type
needs nstaves instead of nstaves – 1 (to select all staves)
and
curScore.selection.selectRange(0,curScore.lastSegment.tick + 1,0,curScore.nstaves); //cmd("select-
needs to be sandwiched between
curScore.startCmd(); & curScore.endCmd();
See [node: 334669]

Attachment Size
SelectEverything.qml 417 bytes

Comments

Do you still have an unanswered question? Please log in first to post your question.