I did this change to allow same kind of logic on any named type like Layers, Materials, Linetypes, etc.
With the current implementation you can use same logic for adding a prefix to your layers and materials for instance, while the previous implementation force you to parse Layer full path in order to do it and treat different types in a different way.
Right now you can do something like this to obtain the full path.
I am using the full layer name primarily to retrieve any of the parent layers that I have in a document.
The idea is that every design iteration is assigned a unique parent layer name (e.g. Design 01, Design 02, etc.) and within each Parent layer I use a consistent sub-layer structure (e.g. 0. Street centrelines, 01. buildings, etc.). get the geometry I need into grasshopper by referencing the sublayers and can change the design by changing the parent layer in this portion of the script:
Yes, you are following me correctly. But, the “default” layer should also show (since it is a main layer in the document). At least, that’s what the old workflow allowed me to do. Not sure yet whether content identity works the way I want it to, because when I ran a test earlier with a file where there were layers with and without sublayers, the method you’ve shown in your earlier post didn’t work the way you showed. Anyways, I just checked to see if there was an update, but I don’t have access to the cull empty fragments yet.
Is it possible to get a component that filters out the main layers? I’m asking because that would simplify definitions (less work/ shorter/ don’t need user objects/ clusters). Or perhaps have it as additional field in the Model Layers component?
I will have to get back to this when I get access to the cull empty option.