So I took a look into [SubToolGetStatus] especially in combinations with folders and I am a bit confused. What I learned sofar is that the topmost Subtool in a folder holds the status of the folder (just like with boolean groups). This is great news, as I first was concerned the possibility to hide folder in the prefs, would create a nightmare to track.
Other Subtools in a folder don’t seem to have a special “is part of folder” flag though and this is where my confusion starts.
A Subtool that is part of a groups and gets hidden by the parent folder remains it’s status (e.g 17) although being not visible. I assume this was done to be able to restore the correct visibility of the content of the folder.
It makes [SubToolGetStatus] an unreliable source though, when looking through the complete Subtool list. I now have a list where a status of 17 can mean a Subtool outside a folder is visible, yet also be invisible to the user (although technically visible) inside of a hidden folder.
This in combination with the fact, that the status holds not information about Polypaint, feels like unused potential.
The status is easy to use (no name check->few lines), so it could be a slick all purpose solution. From what I have learned so far, it seems to make things more complicated though, as I now might need to check for the modifier and the status as well, to get the complete state of a Subtool.
Should I be mistaken and I simply need to wait a little longer for the documentation that will shed light on all my questions, please let me know :)!