3.9.19 Head-Up Display Legend
Is not yet part of the official Karamba3D release. To be released shortly.
Last updated
Is not yet part of the official Karamba3D release. To be released shortly.
Last updated
The standard Legend component in Grasshopper is capable of displaying color-text pairs, which is helpful for interpreting color plots resulting from structural analysis. However, one limitation is that it does not support a head-up display (HUD). This is where the Karamba3D Legend component becomes valuable (see Fig. 3.9.19.1). It remains fixed on the screen and offers several options for customizing the legend's appearance.
Input plugs of the Legend component:
"C" expects a list of colors.
"T" accepts a list of corresponding texts.
"S" allows the legend to be scaled. A value of "1" corresponds to the full size of the viewport.
"VP" receives a list of viewport names where the legend should be displayed. By default, the legend appears in all active viewports.
Additional customization options can be accessed via the component’s context menu (see Fig. 3.9.19.2), which is opened by right-clicking on the component.
Context menu options include:
Position: Allows you to choose the side of the viewport where the legend will appear. This setting also determines whether the legend is laid out vertically or horizontally.
Justification: Defines the alignment of the legend on the selected side. Options include “Left”, “Center”, or “Right”. For vertically arranged legends, this corresponds to “Top”, “Center”, and “Bottom”.
Show header separately: When Karamba3D components output results as color-text pairs, the first text item typically serves as a header describing the quantity. The corresponding first color usually indicates values below the current numeric range. Enabling this option hides the first color and places the header text above the rest of the legend entries.
Special thanks to Rudolf Neumerkel, who proposed the idea and provided the initial implementation.