Is there a way to add a button / icon to the ui with python ?

   1804   1   1
User Avatar
Member
15 posts
Joined: Nov. 2016
Offline
Hello,

I'm looking for a way to display information about my file in the Houdini UI (is the file checked in / out, is this a development environment, etc).
My first approach was to adjust the title of the main window. This works fine in a regular shelf button script. When I use it for example in the 123.py or an afterLoad callback it seems that Houdini calls its on title set function after the 123 and callback has run and overwrites my changes.

So my next idea was to add a custom button to the main menu bar. But I didn't found any functions related to the menubar and hacking my way downwards through the mainWindow layouts and widgets seems like the wrong approach.
Has anyone ever done something like that or has another approach ? I know there is the option to make a python panel but I really prefer a small button which is always visible.

Thanks,

Dome
User Avatar
Member
15 posts
Joined: Nov. 2016
Offline
Found a solution in the lower half of the official documentation.

https://www.sidefx.com/docs/houdini/basics/config_menus.html [www.sidefx.com]
  • Quick Links