Get bounding boxes of part measures

• Sep 21, 2024 - 13:38

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();
  }
}

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