# Preview VisualizationSet

![](/files/1t5oQmcHcAbh6aFKTvas)

![](/files/uaJqahMtnTDarTOhmPBp) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src//LB%20Preview%20VisualizationSet.py)

Preview a VisualizationSet from any component with a vis\_set output.

The VisualizationSet is often a much more detailed view of the geometry that the component typically generates and includes features like recommended line weights/types, display modes (eg. wireframe vs. shaded), transparency, and more.

### Inputs

* **vis\_set \[Required]**

VisualizationSet arguments from any Ladybug Tools component with a vis\_set output. This can also be the path to a .vsf file that exists on this machine (these files are often written with the "LB Dump VisualizationSet" component). Lastly, this input can be a custom VisualizationSet that has been created with the Ladybug Tools SDK.

* **leg\_par**

Script variable VisSet

* **leg\_par2d**

Optional 2D LegendParameters from the "LB Legend Parameters 2D" component, which will be used to customize a legend in the plane of the screen so that it functions like a head-up display (HUD). If unspecified, the VisualizationSet will be rendered with 3D legends in the Rhino scene much like the other native Ladybug Tools components.

* **data\_set**

Optional text or an integer to select a specific data set from analysis geometries within the Visualization Set. Note that this input only has meaning for Visualization Sets that contain multiple data sets assigned to the same geometry. When using an integer, this will refer to the index of the data set to be visualized (starting with 0). When using text, this will refer to the name of the data type for the data set to be displayed.

* **viewport**

Text for the name of the Rhino viewport in which the VisualizationSet will be rendered. Multiple viewports can be connected to have the VisualizationSet display in several viewports. If unspecified, the VisualizationSet is rendered in all viewports. Acceptable inputs include: Perspective Top Bottom Left Right Front Back any view name that has been saved within the Rhino file

### Outputs

* **vs**

A VisualizationSet object that can be baked into the Rhino document by running "Bake" on this component or written to a standalone file using the "LB Dump VisualizationSet" component.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/ladybug-primer/components/4_extra/preview_visualizationset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
