Hi everyone! I'm writing a python viewer state where I split the viewport while in the state, then close that extra pane tab when the state exits. I've been running into an odd error. When I open or close a pane tab while in the state, a window pops up with the title "Python Callback Error", with the following message:
I'm unsure how to debug this since the error is not in my own file. If I understand correctly, one of Houdini's code files is calling findPaneTab on an object that's been passed to it from my code, and the object I'm passing is a NoneType object, but I'm not sure what object that is or how to find out. It's also an odd situation because my code appears to do exactly what I want it to do, other than the error messages.
Any insight or tips you have to offer are greatly appreciated!
I actually just figured out a solve! I'm still not sure exactly why, but it seems that Houdini didn't appreciate me renaming a pane tab. I tried a different approach where I just stored the pane's original name and used that to look it up later (which I guess is better practice anyway haha) and that seemed to work! I'm attaching both the broken version of my state and the workaround in case it helps somebody else to see.
Thank you so much for being willing to take a look mabelzile!