Jump to content

hou.hipFile.merge opening file?


Mozzarino

Recommended Posts

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 :lol:

Edited by diogomgf
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...