Reload Package without restarting Houdini

   4134   4   3
User Avatar
Member
96 posts
Joined: 2月 2020
Offline
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
スタッフ
454 posts
Joined: 2月 2018
Offline
It's not yet supported when reloading packages, you have to restart Houdini for your changes to take effect.
User Avatar
Member
288 posts
Joined: 3月 2011
Offline
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
スタッフ
454 posts
Joined: 2月 2018
Offline
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
298 posts
Joined: 7月 2013
Online
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