Set discontiguous Tree View selections via script

I have a Vision window with a Tree View that allows multiple discontiguous selections, and I have been unable to set its selections based on the results of a script. It’s easy enough to get all selected paths when the user selects multiple items, but there doesn’t appear to be a setSelectedPaths() method to go with the getSelectedPaths().

I tried getting the underlying TreeSelectionModel and setting the paths there with that object’s setSelectionPaths() method, as suggested in this post: https://forum.inductiveautomation.com/t/multi-select-in-tree-on-reload/10637/2. That seemed to work, but I could not figure out a way to get the actual Tree View to recognize the paths and show them as selected.

Is there some other way to set these values?