Closed ntamas closed 2 years ago
Some improvements were made in https://github.com/skybrush-io/studio-blender/commit/335f404aabc715c49231edbe0c036081cf55597e . It does not seem that there's a generic way to query Blender about the bottom of the current set of viewport overlays so I just tried to cover all cases with Blender's built-in overlays. Feel free to reopen this issue if it breaks in newer versions. The current version works for Blender versions up to 3.1
The plugin places an overlay in the top left corner of the 3D viewport that shows the name of the current formation, the min distance and the altitude range of the current frame. This may overlap with Blender's own viewport overlays; for instance, turn on the "Statistics" viewport overlay in the top right corner under the "Show Overlays" dropdown and you'll see what I mean.
The best would be to register our overlay as one that Blender knows about so it could also be toggled from the same overlay dropdown, although I don't know whether that's possible with the Python API. If not, at least we should make sure that it does not overlap Blender's own overlays.