I can adjust the colors and yes things have changed. Beta upped their layer maximum to 200 which is now on prod. This is why I changed how it was calculated. instead of a static value. So if it ever changes again. It will see it on the fly. WME has less active layers now thanks to the devs. So the number should show less for active layers.
Lots of changes here with the new version of WME. The WME developers changed the “zones” that layers can be in so that the zone that user script layers are in can now accommodate 200 layers. This script is now only counting layers set as visible, which is why the count is lower now. I’m not sure this is appropriate because if a script creates a layer, even if its not visible, it is still taking one of those layer “slots”.
The colors are supposed to indicate how much of the available space you are using. Green means you are using less than 25% of the available space. I think its much less important now that the space available has been extended.
If you go to line 62 in the script and change “green” to “lightgreen” that makes it much more readable. The background shading is not consistent for me. It is often just a white background.
For me, it is currently showing 46 layers (visible), but the actual number of layers created is 79. Like I said, it might be best to show the total layer count, not just those that are set visible.
200 is a hard limit on the number of layers that can be created/allocated. Whether it is visible or not, when a script creates a layer, it is allocated and takes up one of the slots.
It sounds like you don’t understand what creates the eventual issue.
Visibility has no impact on the object selection issue (with the possible exception of the final layer that is passes into the Feature space - but I have not tested that, and with the extra possible layers I don’t want to dedicate the time to). The layer count increases due to layers being added regardless of if they are visible or not, and the eventual passing of a layers zindex into the Feature space is what creates the issue.
With the available space that we have now, especially with recent changes to many scripts to minimize layer usage, I’m not sure I see a value in taking up WME real estate with a display like this. With the likelihood of hitting the issue being so low, moving this to a tab to be referenced would make more sense to me.