Get true system bounding boxes with plugin

• Dec 10, 2024 - 10:34

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 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?


Comments

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