It’s easy enough to combine the two clusters into a single cluster and create a User Object with it, but the UI features would have to be added each time. The two sliders, the two text panels that show the selected branch path and list index, the two Custom Preview components (blue and yellow) that indicate visually the selected branch and item.
I suppose the entire lot with UI features could be encapsulated in a cluster that accepts a single tree input and that you would have to open/edit to access the UI controls but that could be a pain, eh?
I frequently use text panels instead of the Data Viewer to see tree/branch structure but the ‘Tree/List Viewer’ tool is REALLY USEFUL when I want to understand which geometry is in each branch and the sequence of branches and items in each branch. Sometimes I use two copies of the tool driven by a single pair of sliders to understand two trees at once that have the same structure.
P.S. Just for kicks, I tried clustering the entire ‘Tree/List Viewer’ tool, and though its use is not intuitive, it’s not entirely bad, given the ability to ‘File | Create User Object’ with it. Outputs are optional.
TreeListVu_2021_Jul13a.gh (18.2 KB)
The (now internal) vTrE and vList clusters are not password-protected so can be opened and edited, as before.