Thank you for the screenshots, your requirements are more clear now.
We prepared two Macros for you.
Both Macros require DTouch for Cubase 1.1.27 or later, since they use some new KeyCommands that we added in that version.
The difference between the two Macros lies in the height of Tracks outside of Folders.
Both set the Folder height to 1 row, and Tracks inside of Folders height to 3 rows.
The first one sets Tracks outside of Folders to 3 rows height:
This Macro requires these Project Logical Editors:
The first one sets Tracks outside of Folders to 1 row height:
This Macro requires these Project Logical Editors only:
Please test them and let us know if they look good for you!