Jump to content

Making pop up UIs in Houdini


Recommended Posts

Hi guys,

Does Houdini come with any way of making reasonably sophisticated/complex UIs that are more advanced than just a simple "hou.ui.displaymessage()"?

Lets say I want to click a shelf button and get a pop up window that allows me to enter a few strings, choose from a couple of drop down menus and tick a couple of checkboxes.

I want to use the results of whatever the user picks to run some more code.

Is this kind of thing possible? I can't find anywhere in the "hou" reference that shows this can be done...

Thanks

Link to comment
Share on other sites

So far I have found a few things like:

hou.ui.readMultiInput("This is a message", ["test1", "test2"])

&

hou.ui.selectFromList(["1","2","3"])

But it doesn't seem like you can combine them and it seems a bit limited in the types of ui elements available.

Is PyQT the only way?

Link to comment
Share on other sites

If you can get your head around Houdini's .ui script you can make some not too complex dialogs with the look and feel of Houdini. It's a bit weird though and not super full featured.

I'd say PyQt is probably the best bet.

Link to comment
Share on other sites

I'm partial to the .ui scripting language though. It's basically like a cleaner version of Mozilla's XUL. To use it, you need to create a dialog.ui file and give it the full path to hou.ui.createDialog(). This creates a hou.Dialog object that you can then do stuff with.

Unfortunately, there's no documentation for it though. The closest is the HDK documentation:

http://www.sidefx.co...k_uinative.html

http://www.sidefx.co...e_uiscript.html

http://www.sidefx.com/docs/hdk12.5/cmd__ui_8_c.html

http://www.sidefx.co...8_c_source.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...