Snippet “select everything on the score, filter the [ ] by element type” has issues
(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
Thank you @elsewhere
See [node: 334669] = https://musescore.org/en/node/334669