Reload Package without restarting Houdini

   3303   4   2
User Avatar
Member
95 posts
Joined: 2月 2020
オフライン
I'm working on some custom right click menus. My menu, PARMmenu.xml, is stored in a custom package that I've added to my houdini19.0\packages folder. When I make edits to PARMMenu.xml while the session is running, the changes are not updating. The only way I can get the menu to update is by restarting Houdini.

I thought the Main Menu>Assets>Refresh Assets Libraries might refresh my menu, but that doesn't seem to be the case.

Is there anyway to reload my menu without restarting the session?
Edited by wyhinton1 - 2022年8月3日 14:30:57
User Avatar
スタッフ
450 posts
Joined: 2月 2018
オフライン
It's not yet supported when reloading packages, you have to restart Houdini for your changes to take effect.
User Avatar
Member
279 posts
Joined: 3月 2011
オンライン
mabelzile
It's not yet supported when reloading packages, you have to restart Houdini for your changes to take effect.

Wouldn't "hou.ui.reloadPackage" method do that?
User Avatar
スタッフ
450 posts
Joined: 2月 2018
オフライン
guilhermecasagrandi
mabelzile
It's not yet supported when reloading packages, you have to restart Houdini for your changes to take effect.

Wouldn't "hou.ui.reloadPackage" method do that?

Ideally yes, but custom menus are not supported by `hou.ui.reloadPackage`
User Avatar
Member
293 posts
Joined: 7月 2013
オフライン
in a TextPort pane run the "menurefresh" hscript command, it will reload all PARM/OP etc contextmenu content, also those defined in packages.

edit: I now see this is a 3 year old thread, I landed here while searching for something else
Edited by Jonathan de Blok - 2025年10月15日 10:03:24
More code, less clicks.
  • Quick Links