Within a scripted component I am creating a set of points (in a data tree) and a set of doubles (in a matching data tree); the script works fine. I want to use the doubles in a TextTag3d located at the points. However, some of the points will not have a corresponding tag (in the jpg example the first two points should have no value), I thought that by making a tree structure I could be sure that the values would line up with the correct points, but you can see that it instead it acts a lot like two flat lists compared by Longest-List (and repeats the last value until the point tree is full).
I realized that within the script I could add 'myDatatree.add(Nothing, path)' for the points I want empty, but I've had this issue before with non-scripted operations and it's a fundamental confusion I still have about Trees and their frequently unpredictable (to me) behavior.
If anyone can explain why this happens or a better way to fill in empty branches (dynamically) I'd appreciate it, thanks.
Tags:
- Attachments:
-