See the below post about grouping curves. Once you have your groups, I’m sure you’ll be able to get the rest.