New Grasshopper User Interface builder now on demo - DKUI

Last one for tonight:

A range of components to select objects in the Rhino document.

Cheers

DK

2 Likes

For the tables currently I am just putting together HTML fragments and experimenting with them. Just the fact that your pages are built using html and css really open up a lot of possibilities.

2 Likes

Nice work there @Muhammad_Talha_Mufte

I’m hoping to write up the spec for the UI to GH comms for those that want to create there own components.

It’s a simple set of rules and the rest is stock web development

Cheers

DK

So, I had feed back on Food4Rhino this morning that DKUI was not supporting Chinese characters in the controls.

Took some interesting hoop jumps, but I’ve worked a way to support all Unicode characters (cue up all you fav emojis!) as control names/labels.



V25.6.5.2 is now on the package manager - sorry, totally a breaking change - I think ALL the UI components are upgraded from PY2 to PY3 - but honestly its worth it this early in the release.

Cheers

DK

1 Like

I’m not completely at ease with what this might bring to the table:

2 Likes

Hi, I can’t stop testing your plugin, its so great;)
I have a request: is it possible to create multiple buttons using a single component to achieve a dynamic UI? I’ve tried it, but I’m unable to update the values in the UI when connecting it as shown in the screenshot:

1 Like

Hi Micheal,

Very happy to hear you are getting into DKUI!

As of right now, each control in the UI requires its own build component - as this relates to how the data is managed, (among other thing, including the developers skill level).

As you have seen above - if you pipe in three names, you will get three controls out, but only the last one will have a working value panel.

I’ve been thinking about the concept of a list of say button names creating a set of buttons. No promises as to when or even if that may happen, but thank you for the request - it certainly adds to the motivation to find a solution.

Cheers

DK

When I change the name of the button to Chinese, the program cannot run.
In addition, picking objects can only pick a single object and cannot pick multiple objects.

你好吗 Cheng,

Great to hear you are learning to use my plugin.

Which version do you currently have installed?

V25.6.5.2 uploaded at about 8pm last night was the first version to add unicode/Chinese character support for control names:

Could you update to this version and advise if the problem is sorted out?

Thanks

DK

The plugin has been updated, and during testing, it was found that the button name can be changed to Chinese and displayed, but the program cannot run properly.

Hi Cheng,

Actually I can see the issue in the image above - the NickName on the Get Curve component has non-ascii characters which breaks the DKUI to GH data flow:

The INPUT components have been updated to support unicode, but the Get Rhino Geometry components have not had the same update yet.

I will get that onto the ‘bug fix list’ straight away and let you know once the new version is available.

Thank you so much for the feedback!

Cheers

DK

Hi Cheng,

I have this evening done two things:

1/ Developed a new, single universal DK Get Objects component that replaces the previous 4 components for object selection from Rhino. These has been tested with Chinese characters in both the DKUI Button and Get Object component and is working.

2/ I’ve made and uploaded a video showing setting up the new component:

Please update to the V25.6.6.2 release now on the package manager and check out the video.

GH code used in the video is here:

Cheers

DK

1 Like

Hi Cheng,

This is a strange issue - I cannot replicate on my machine.

A couple of things - first, what version of Rhino are you running?

Second, could you open the GH file attached to this message and take a screen shot the same as this for me:

I want to check that the unicode conversion that I’m using works the same on your machine.

On selection of multi objects in Rhino - that is on the development list, I’ll update you when it is ready.

Thanks

DK

250607_Unicode Test.gh (7.1 KB)

I have identified the issue. When SetSetNetRuntime is set to NETCore, the program runs normally but cannot run in NETFramework mode. thank you.

Hi Cheng, thank you for the update! That makes sense.

I have also nearly finished a Select Objects component for DKUI, that allows for selecting any number of Rhino objects. It should be in the next update.

Thanks

DK

This evening fun and games was starting to build the component documentation:

The key to the input and output details are:

variable_name <type: domain> [built in default] function description

Cheers

DK

1 Like

Just a minor hiccup, but I cannot get the custom png icon to work. I have tried the encoding utility as well as online tools to convert png files. Am I missing something regarding the png specification?

Hi @Muhammad_Talha_Mufte

I believe the issue is I have recently added a couple of extra inputs to the Page Server component BUT this does not auto update on the canvas even after you update the actual plugin version.

This is what the latest version should look like - note the page_x and page_y inputs.

Two things to do:

1/ Make sure you are on the latest version of DKUI - V25.6.8.1

2/ Delete the component off the canvas and replace with the one from the DKUI menu.

That should have you running again.

I’m hoping to be somewhat clear of these early beta test breaking changes soon. Though I’ve been using the platform for a number of years, other users quickly show where problems/improvement can be done.

Cheers

DK

Ive also started work on the HELP docs for DKUI - this is a a preview of what that will look like:

Hopefully this will help for this type of question in the future.

Cheers

DK

1 Like