Human UI Configurator

Hi everyone, and @andheum

I’m new to Human UI and would like to learn how to build configurators efficiently.

My goal is to create a configurator for my master’s thesis, where I can compare different facade variations and their radiation analysis results.

What would you recommend for understanding Human UI configurators?

Are there any specific tutorials, courses, videos, or example projects that you found particularly helpful?

Also, is there a recommended workflow for working with precomputed design options rather than recalculating everything in Grasshopper?

Thank you very much for your advice!

Hi, My Human UI sliders work when connected directly to Launch Window, but they disappear when I place them inside a Create Expander. The Expander header is visible, but no UI elements are shown inside. Any idea what could be causing this?

Thanks

There are lots of ways to avoid Grasshopper refreshing solutions, but each method depends on your use case. You can preload data into, say, files on your computer or as internalized data to avoid recomputing it (memoization), you could use data gates and recorders to dynamically disable parts of the script that are not in use, you could rewrite some heavier components into C# or Python… the list goes on.

For your UI problem, I recreated what you’re showing and it works fine. I would check your sliders and make sure they are not in any other container, as that can bug the window (in my experience). If you want more help, I recommend isolating the UI system and sharing that with us as a .gh. It’s difficult to determine what’s going on otherwise.

Thanks for messages, I think the problem is that when I connect the Value Listener, Human UI recomputes, and the content inside the Expander disappears during the refresh.

I’m sending you the file .. thanks

260622_Question Human UI-Example.gh (36.0 KB)

Ah, I think I was able to recreate it. The window component saves the state of the components to some degree. Try this - highlight the UI components, disable them, then re-enable them. That should reset their state.

Regarding the configurations, if you need UI components that allow you to change their configuration dynamically (i.e., change the container of some elements to a different container type), HumanUI is not great at handling it. In my experience, you need some sort of timer to refresh the UI after such a change. I used to have such a system in one of my old scripts, not sure if that’d be helpful.

Hi Volkan,

Another option to create full user interfaces in GH is my plugin DKUI:

It runs on a ETO.webview using HTML/JS/CSS so is cross platform.

Where is does shine over HumanUI is with dynamic controls, the whole interface is rebuilt on every user interaction, so the controls can vary based on user input.

I’m also very happy to answer questions or help you with design questions.

Cheers

DK