ShapeDiver Layer Attribute Visualization mode

The ShapeDiver documentation

suggests that “Injecting Attributes” of Key “layer” and Value “SomeLayerName” to an object and then feeding that into a “ShapeDiver Output” Component enables the Attribute visualization mode in the viewer.

See icon at the bottom left:

Is this feature still available in most recent builds?
Does a simplistic example exist online?

I see an overlap with this thread

Hope the layer attribute visualization mode feature in App is just days away :wink:

I do not fully understand your question, but here are some points.

The layer attribute should still result in the UI described in your post above, in the model view page. This UI does not yet exist in Apps built with the App Builder, however the layer attribute can be visualized like all other attributes with the Attributes Visualization widget. Check the example here: Attributes - Tutorial Grasshopper definitions for ShapeDiver

Hi Mathieu,

ideally the feature would be added into the App Builder version, so that layers can be turned on and off in the viewer without needing to recompute.

The messy work around is to use boolean toggles and to recompute the model each time a “layer” is to be turned off or on.

This simple reduction of your tutorial file shows what I mean:
Each sphere has only has an attribute “layer” that should let the viewer know that the little layer icon should show up (formerly in the bottom left corner).

Common scenario:

We create geometry and derivatives, get the computed result into the viewer and there we want to be able to show / hide derviatives (on layers or by means of the attribute “layer”) .
It shouldn’t be that we are forced to recompute the entire model omitting those parts that are to be hidden.