Make2D Visible Index as List

Hey Team,

I’m currently producing Make2D drawings in Grasshopper. After the Make2D I would like to color the drawing based on the original object type (in this example, blue for circle, red for squares). I’ve managed to reconstruct the Make2D curves back into their object-groupings as the picture shows, but when I dispatch based on their original data-structure, I’m getting confused as to why it doesn’t match my original list of objects…

This is a simplification of my problem, but essentially after a Make2D I would like to be able to re-sort objects to match a previous (arbitrary) data-structure…

Any help would be fantastic, I’ve attached a script for those interested… (23.6 KB)

Found the answer here… Keeping make2D graft? - #7 by andrea.settimi