read <Page number> of <Element> MuseScore 3 plugin
Hello
How to read the page number of an Element in MuseScore 3 plugin ?
I run through the element in a loop. I can read the tick for each element. But not able to read the page_number.
In MuseScore2, it was cursor.measure.parent.parent.pagenumber : does not work in MuseScore 3...
Thank you for your help.
Franck
while (cursor.segment) {
var e = cursor.element;
if (e) {
console.log("type:", e.name, "at tick:", e.tick, " page=" , cursor.???_pagenumber_??? );