From: NexPB
Weird cause they had different ids wich made it easy to find curly or straight.
From: grats
nope they had the same ID's
If I might butt in on this a little bit. The base Obj ID was the same like Grats said. I struggled with this for a long time. But the composite ID is what differed between straight roots/curly roots/cut roots. We weren't able to get this hook for a long time, so certain scripts we simply couldn't make, this being one of them. But eventually we were able to find objects by the composite ID rather than base ID, so scripts like this were possible (and created).
Now, about this script. Thinking about it now I think it's do-able with color, it's just gonna be crazy inaccurate. I can think of two ways right now to search for a 'curly' root:
1: Finding the tip of all of the roots and splitting those into, I'd say, 40x40 box. Search inside each box and if there's not so many green (I guess it's green? the root color) points found it's
probably a straight root. If there's lots of green points found then that means it's probably curled up and we've found a curly root.
2: DTMs. Making a simple DTM of the curl might work, but you'd have to be at a pretty specific camera angle, and/or continue rotating your camera until a DTM is found within tolerance:

The red dot being the parent point and the black dots being child points. Area size would have to be set high along with color tolerance for
all points.
Anything's possible, it just depends on how much time you're willing to invest into it.