How to get all objects in the score, including the TItle/Subtitle text box?

• Oct 18, 2024 - 08:33

Hi there
When I select the whole score, then do curScore.selection.elements, I get all the elements that are attached to a bar/staff — but I don't get the Title/Subtitle text frame at the top of page 1. I'm unclear how I get a reference to that — what object is it attached to?


Comments

In reply to by michaelnorris

Seems you can get the the text of Title etc but only if you select them manually, and they only select one at a time. When you ‘select all’ you select the score and that also does not include title etc.

var elems = curScore.selection.elements;
for (var i in elems)
console.log(elems[i].text);

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