Mozzarino Posted December 14, 2020 Share Posted December 14, 2020 (edited) Hello fellow magicians, I'm using PySide2 and PyQt to make a button that merges an already existing .hip file with the current open scene. After reading the Documentation, I'm under the impression that the method hou.hipFile.merge('path_to_merging_file') is what I'm looking for... But after using this method, Houdini tries to load the file in the path. Can some one point out what I'm doing wrong? Solved: I think the problem was that I didn't have my current open scene saved... And Houdini also imports the display options from the merged file, so I thought I was in the .hip file I wanted to merge Edited December 14, 2020 by diogomgf Quote Link to comment Share on other sites More sharing options...
Librarian Posted December 14, 2020 Share Posted December 14, 2020 from PySide2 import QtWidgets, QtCore def p_something(): print "Hello" dialog = QtWidgets.QWidget() dialog.setParent(hou.qt.mainWindow(), QtCore.Qt.Window) button = QtWidgets.QPushButton("Click") button.clicked.connect(p_something) v_layout = QtWidgets.QVBoxLayout() v_layout.addWidget(button) dialog.setLayout(v_layout) dialog.show() I learned Heeloooo Here You have Fun ...Python and Other Scripts just do searching https://fereria.github.io/reincarnation_tech/10_Houdini/11_SOLARIS/90_solaris_lop_node/#python Quote Link to comment Share on other sites More sharing options...
Mozzarino Posted December 14, 2020 Author Share Posted December 14, 2020 (edited) @Librarian Is this answer in the right thread? Edited December 14, 2020 by diogomgf 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.