Get bounding boxes of part measures
Is there a way to get bounding boxes of part measures (measures in score-partwise encoding, specific to a staff) with the plugin in MuseScore 3.6.2? Measure bounding boxes do exist, but they extend over all parts (score-timewise).
onRun: {
if (!curScore)
Qt.quit();
var cursor = curScore.newCursor();
cursor.rewind(Cursor.SCORE_START);
while (cursor.segment) {
var measure = cursor.measure;
var bbox = measure.bbox;
console.log("Measure: " + measure.no + ", BBox: " + bbox);
cursor.nextMeasure();
}
Qt.quit();
}
}