Jump to content

"control" ui elements via python


bobbybob

Recommended Posts

Hi


I am trying to enable/disable octane license inside Houdini, via python, but I can't find a way to "press a button" or paste text to the "username" and "password" input forms.

The Octane dialog is created with "Houdini’s User Interface Script Language" and is opened via the tool shelf.

Is this possible, via python?

Link to comment
Share on other sites

On 2/6/2021 at 7:36 AM, bobbybob said:

Is this possible, via python?

It depends, but in most cases you're out of luck. Check the shelf source. If the dialog was created with hou.ui.createDialog(..) then it means there's a source code somewhere and you can lookup the parameter name and set it with hou.Dialog.value(). But I doubt Ocatane devs chose this way it most likely implemented in HDK.

Your best bet would be to check if Octane provides some sort of Python API or maybe ask them directly.

  • Thanks 1
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...