Search - User list
Full Version: Reload Package without restarting Houdini
Root » Technical Discussion » Reload Package without restarting Houdini
wyhinton1
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?
mabelzile
It's not yet supported when reloading packages, you have to restart Houdini for your changes to take effect.
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?
mabelzile
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`
Jonathan de Blok
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
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