Great work!
Children hiding is also scriptable of course, and I actually did it a while ago:
https://forum.cockos.com/showpost.ph...15&postcount=8
But Reaper does not select items in hidden tracks, discussed here:
https://forum.cockos.com/showthread.php?t=203596
Modifying a theme is more useful here.