Sketchup-Ur-Space
sketchup, sketchup tutorials, sketchup tips, sketchup plugins, armedia, vray

Author : Thomas Thomassen

SKUI - A GUI Framework for SketchUp

Introducing SKUI, a GUI framework for SketchUp. It’s a library that lets you create and manipulate WebDialog GUI using only Ruby code. It saves you from needing any knowledge of HTML, CSS, JS or browser compatibility issues in order to create a UI for your SketchUp extension.

Here is a quick example:

SKUI - A GUI Framework for SketchUp

SKUI - A GUI Framework for SketchUp

Notice that controls can be added, removed and manipulated after the window has been created. Allowing for quick prototyping of the GUI.

Controls are represented as Ruby classes that describe the properties and events. Here is a slightly larger example of the controls currently available:

SKUI - A GUI Framework for SketchUp

Of course, one can use themes – with a single line you can swap theme, even while the window is open: window.theme = SKUI::Window::THEME_GRAPHITE

SKUI - A GUI Framework for SketchUp

The project is hosted on GitHub and is still under development. There are still a few issues that needs to be resolved before the first release can be announced. For this I invite you, the community, to check it out and help me resolve the last issues, test it and contribute improvements.

What do you think about this article