Intro

This article demonstrates an example with different input and output types supported on the Modelup platform.

Example

The demo below is a configurator that generates geometry based on user inputs. The control panel is designed to showcase a variety of input components.

In addition to displaying geometry in the 3D scene, it outputs textual information through a plain text panel and provides an option to download a 3dm file.

in-out-ui-example.gif

👉 Try it live here: https://configurator.modelup3d.com/?projectId=93j3S98c&token=eyJhbGciOiJIUzI1NiJ9.eyJ2NW4iOjEsImlkIjo4MywicDdkIjoiOTNqM1M5OGMiLCJwOXMiOlsiYzVlIiwicl9jMTVhIl0sIm1pIjp7ImRpc2FsbG93Ijp7ImUiOlsxXX19fQ.rE-yYrzKFk0PTLZNEvtD_Kb3tIv4VnQdGYmxWa9LAhw&configurationState=a_4158af49-3037-4667-b298-dc83402d77d6_1327d3cd-9482-4a9e-9bf4-f1fbe651ee47__39d21994-fb14-4566-aba5-7c3a50ee7c0e__16ae64c4-9f5a-445b-aab8-a440b34728a0_0_7b7f1796-e0df-4513-b186-de2a5f76ca01_2_31f96e65-3ccf-4080-ae53-b3882a226010_1_2af52dc4-4c22-4cdc-b760-d01d979f9477_1_cf91764c-76af-4d46-b6fc-6d6001255b42_1_a8dd5826-642e-4e40-9c29-1c3aa79b9a8b_1

The underlying Grasshopper definition looks like this:

in-out-ui-example.png

💾 Download it here:

in-out-ui-example.gh

UI components in the demo

Below is a list of UI components used in the example. Each section includes a short explanation, their appearance in the control panel, and the corresponding Grasshopper components.

Some components include links to additional documentation and examples.

Slider

The slider lets the user select a numeric value. Its minimum, maximum, and precision settings are configured in Grasshopper by right-clicking the slider component.

Tick steps when dragging are calculated automatically to optimize usability. A value can also be entered directly in the text box next to the slider.

Appearance in control panel

image.png

Underlying Grasshopper component

image.png