Get true system bounding boxes with plugin
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
This sort of question would best be posted in the Plug-ins forum (https://musescore.org/en/forum/443). It's likely that you'll get an answer to it here (eventually), but that forum is where the people who can best answer it pay particular attention.