DominikL Posted September 20, 2019 Share Posted September 20, 2019 Hello, i am new to this and i don't understand why hou.ui functions stop working when you reopen a panel. Example video. The example code that i used: from PySide2 import QtWidgets class testUi(QtWidgets.QWidget): def __init__(self): QtWidgets.QWidget.__init__(self) button1 = QtWidgets.QPushButton() layout = QtWidgets.QVBoxLayout() layout.addWidget(button1) self.setLayout(layout) button1.clicked.connect(openSel) def openSel(): list1 = ["1","2","3"] sel1 = hou.ui.selectFromList(list1, exclusive=True) print sel1 def createInterface(): return testUi() Quote Link to comment Share on other sites More sharing options...
Maurits Posted September 30, 2019 Share Posted September 30, 2019 Might be that the panel is only made the first time and the next time you open the panel. It reopens the one that was made before, skipping the Init. Quote Link to comment Share on other sites More sharing options...
animknight Posted October 1, 2019 Share Posted October 1, 2019 I wasn't able to reproduce your issue. It's re-opening fine for me. which version of Houdini are you using ? -J Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.