I've created a panel with a number of other panels into it. Using it, I open panel by panel for doing my work.
Then I've added an operator to reset its properties to their default state. I'd like this operator to reset the panel state, too, so its subpanels are all closed. There are a lot of them, and I don't want to close them one by one.
For instance, when we do CTRL-N or File - new, the panel restarts with all subpanels closed. Does someone know how to achieve this with operator code?
Thank you
DEFAULT_CLOSED' in the options and toggle registration. – batFINGER Aug 01 '20 at 17:24