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?
4807 5 2- justin2taylor
- Member
- 4 posts
- Joined: April 2017
- Offline
- justin2taylor
- Member
- 4 posts
- Joined: April 2017
- Offline
- Stalkerx777
- Member
- 183 posts
- Joined: Nov. 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 - Oct. 24, 2019 15:28:37
Aleksei Rusev
Sr. Graphics Tools Engineer @ Nvidia
Sr. Graphics Tools Engineer @ Nvidia
- justin2taylor
- Member
- 4 posts
- Joined: April 2017
- Offline
- anshul_vashsit
- Member
- 1 posts
- Joined: April 2019
- Offline
- Jonathan de Blok
- Member
- 274 posts
- Joined: July 2013
- Offline
-
- Quick Links