Currently I'm editing my Panel with the Python Panel Editor and it can refresh whenever I hit Apply, however I was trying to setup a workflow where I can edit the .pypanel file in VS Code and then refresh the panel in Houdini. I've tried loading my panel into the Python Panel and hitting the “Refresh” button, but it looks like that only reloads changes made in the Houdini Python Panel Editor, not externally. Changes made externally seem to require restarting Houdini. Is there another workaround for this?
Thanks,
Justin
Is there a way to refresh Python Panels edited in an external editor?
4668 5 2- justin2taylor
- Member
- 4 posts
- Joined: 4月 2017
- Offline
- justin2taylor
- Member
- 4 posts
- Joined: 4月 2017
- Offline
- Stalkerx777
- Member
- 183 posts
- Joined: 11月 2008
- Offline
Just reload all your modules in the onCreateInterface and upon changes, you can hit the reload interface button on the python panel itself.
def onCreateInterface(): import mymodule reload(mymodule) return mymodule.panel_widget()
Edited by Stalkerx777 - 2019年10月24日 15:28:37
Aleksei Rusev
Sr. Graphics Tools Engineer @ Nvidia
Sr. Graphics Tools Engineer @ Nvidia
- justin2taylor
- Member
- 4 posts
- Joined: 4月 2017
- Offline
- anshul_vashsit
- Member
- 1 posts
- Joined: 4月 2019
- Offline
- Jonathan de Blok
- Member
- 274 posts
- Joined: 7月 2013
- Offline
-
- Quick Links