Search - User list
Full Version: Customize the Title Bar
Root » Houdini Lounge » Customize the Title Bar
wlvl_gv
Is it possible?
I can't find any python function to insert maybe in the 456.py script.
Any help is appreciated
lsgalante
I am assuming that you mean the main menu bar, which contains the file, edit sub menus etc.

It is done using a file named MainMenuCommon.xml in an hpath directory.
The documentation page is here: https://www.sidefx.com/docs/houdini/basics/config_menus.html [www.sidefx.com]

With this file you can add, remove and modify menu items which are defined in the default MainMenuCommon.xml file which can be found among the other default resources in the HFS.
wlvl_r
Hello l_s_galante,
thanks for the reply. My bad I've not being clear enough.
I mean the title bar where
untitled.hip - Houdini FX 20.5.332 - Py3.11
is written
Heileif
I'm just curious. What do you want to change it to and why?
lsgalante
wlvl_r
Hello l_s_galante,
thanks for the reply. My bad I've not being clear enough.
I mean the title bar where
untitled.hip - Houdini FX 20.5.332 - Py3.11
is written


You know, I realized this a little while after I responded. Yes, you can change the title bar, with limitations.
As is the case with most qt functionality, it is not in the documentation.

This is using the Qt5 build on macOS so it may be different for you.

The command is: hou.qt.mainWindow().setWindowTitle("title bar title")

However, running this in the python shell will cause the program to hang. It must be run using a $HFS/pythonX.Ylibs/uiready.py file.

My hope, but not my expectation, is that qt6 builds of houdini will have greater ability to handle pyside6 functions.
wlvl_r
Works perfectly. Thanks a lot l_s_galante!


@Heileif
Customize the title name allows me to better spot the houdini session I need when there are multiple minimized in the taskbar.
animatrix_
I did the same thing before, it comes in handy with multiple sessions.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB