Get true system bounding boxes

• Dec 11, 2024 - 08:42

I am searching for quite a while now how to get bounding boxes for systems using MuseScore 3 plugin. The problem is that measure and system bounding boxes exist but they don't include notation, octave shift lines and so on. I need a bounding box over everything that belongs to a system. Basically, the top and bottom of the bounding boxes is wrong.
I suspect topMargin and bottomMargin of system would be needed to correct system bounding box, but these are always 0 / not exposed.
Looping over elements in the measure to adjust top and bottom does not work, because certain elements like lines can not be accessed this way.
Is there some way to get this information? Maybe using a debug version?
Could I access this in code?

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