How can i determine if a panel is collapsed or expanded?

I want to add a Panel into the N-sidebar which contains links to Addon specific documentation. This alone is easy to achieve of course, but i also want to allow to filter the documentation list to only show links for Panels which are currently open. But for this i need to figure out if there are open and visible panels in the N-Sidebar.

However i could not find anything about how this could be done.
Is that possible at all?

At the moment this isn’t exposed via the Python API, although some hack is probably possible by detecting which panels draw when refreshed, I’d not recommend this.

Finding the memory address with cheat engine is the only thing that comes into my mind.

Though in no way I would slide this in production code, only for personal use. :slight_smile: