Customize the Title Bar

   Views 1287   Replies 6   Subscribers 0
User Avatar
Member
11 posts
Joined: April 2022
Offline
Is it possible?
I can't find any python function to insert maybe in the 456.py script.
Any help is appreciated

Attachments:
titlebar.PNG (11.3 KB)

User Avatar
Member
14 posts
Joined: Jan. 2021
Offline
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.
User Avatar
Member
10 posts
Joined: Oct. 2021
Offline
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
User Avatar
Member
219 posts
Joined: Jan. 2015
Offline
I'm just curious. What do you want to change it to and why?
User Avatar
Member
14 posts
Joined: Jan. 2021
Offline
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.
User Avatar
Member
10 posts
Joined: Oct. 2021
Offline
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.
User Avatar
Member
4845 posts
Joined: Feb. 2012
Online
I did the same thing before, it comes in handy with multiple sessions.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
  • Quick Links