could you please add support for nested layers in the grasshopper geometry pipeline?
I am now forced to use layers starting with similar text and then use the wildcard " * " to get it to work, but it would be so much better if grasshopper would support Rhino’s native MainLayer::SubLayer naming, so if I used MainLayer* it would automatically select geometry from all sublayers.
I’ll have a dig around the code to see whether this can be added without disrupting too much. (probably)
Supersmooth if possible.
Can you take a look at why rendered mode presents the delunay mesh so gray and dull?
Here with default preview material is white, no transparency:
And here baked:
As you can see environment lighting and sun is used.
Yeah it was pretty trivial. The full layer path string is now compared against the layer filter, so that assuming a file with three nested layers:
you can filter:
Default (the first layer only)
Default* (all layers)
Default::* (sublayers only)
*SubLayer2 (third sublayer only)
the problem is that this changes the behaviour. Previously,
SubLayer2 would have selected the third layer, and now it no longer does. Just automatically adding an asterisk in front of the layer filter if there isn’t one already also breaks past behaviour.
@Holo, any suggestions on how to resolve this?
Hi David, sorry for the late reply!
I see… I think…
So we would need a logic way to handle both.
Could using :: be the trigger?
selects objects on all layers and sublayers named SubLayer2.
selects objects on all layers and sublayers that ends on SubLayer2.
selects objects on all sublayers that ends on SubLayer2.
Or am I missing something?
I’ll play around with this some more!
Ok this is not ideal, but it at least doesn’t break old behaviour. I added some versioning to the pipeline so that when a pipeline from an old file is read, it behaves in the old way. You can switch to the new behaviour from the menu. Newly created pipelines always behave in the new way. The switch to new behaviour is undo-able.
Old behaviour, shows a warning:
Switching to new behaviour:
Layer filter will need to be adjusted by the user to make it work under the new behaviour:
Ideally I’d like to make it smarter than this, but that will have to wait until GH2.
I’d like to start using this, where do I need to look to download this GH
I’ll probably commit this code before the next Tuesday Rhino WIP release. However last week’s release may already have the new behaviour, just not the legacy support.
Trying this out, it seems like it hasn’t been committed?
In a quick test here, this appears to be working as advertised…
How does geometry pipeline work with nested layers? I only seem to get it to work with first generation, not when it is nested.
220712 geometry pipeline.gh
You can use the [dynamic geometry pipline] component, right click it and set “match full path”. You can access the layers like Parent::SubLayer::SubsubLayer
Insert asterisk before layer´s name