Jump to content

gemini

Members
  • Content count

    135
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Everything posted by gemini

  1. Tree panel from HOU module

    cool! thx. i check
  2. Tree panel from HOU module

    Hi, can we create a similar panel like this whith the help of the hou module inside Houdini ( no qt ) ? Or inside paramaters panel ? the best would be that ! ? THX! G
  3. Hi, Caching playback in COP Network, is it possible ? THX ! G
  4. Hi, Does anyone has an idea how to avoid the freeze when a shelf file changed by script and reloaded causes the Houdini to freeze ? Thanks in advance! SZ a part of the script : hou.shelves.loadFile( self.shelfFile) if force_all_refresh: hou.shelves.loadFile( self.shelfFile_def) hou.shelves.reloadShelfFiles()
  5. I just simply chack that thing if a shelf tool ( a node from it ) dragged to a connection into the n.e. . Any Idea ?
  6. Hi, Is there any way to check if a Position in the Network Editor is on a Connection or Not ( or near to it ) ? THX !
  7. Hi, Can it be done somehow to set style sheet of a Houdini button ? Thanks! Sz ... from PySide2 import QtWidgets class MainWindow(QtWidgets.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) self.construct_ui() def construct_ui(self): self.setStyleSheet(hou.qt.styleSheet()) self.setProperty("houdiniStyle", True) self.setWindowTitle('PySide2 Test') # main widget main_widget = QtWidgets.QWidget(self) self.setCentralWidget(main_widget) # layout initialize g_layout = QtWidgets.QVBoxLayout() layout = QtWidgets.QFormLayout() main_widget.setLayout(g_layout) # Add Widgets self.parm = QtWidgets.QSpinBox() self.parm.setValue(30) self.parm2 = QtWidgets.QDoubleSpinBox() self.parm2.setValue(30) layout.addRow('Parameter', self.parm) layout.addRow('Parameter', self.parm2) self.exec_btn = QtWidgets.QPushButton('Execute') self.exec_btn.setStyleSheet("background-color: darkorange") self.exec_btn.setFlat( False) # global layout setting g_layout.addLayout(layout) g_layout.addWidget(self.exec_btn) ..
  8. Hi, Can it be done somehow to set style sheet of a Houdini button ? Thanks! Sz ... from PySide2 import QtWidgets class MainWindow(QtWidgets.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) self.construct_ui() def construct_ui(self): self.setStyleSheet(hou.qt.styleSheet()) self.setProperty("houdiniStyle", True) self.setWindowTitle('PySide2 Test') # main widget main_widget = QtWidgets.QWidget(self) self.setCentralWidget(main_widget) # layout initialize g_layout = QtWidgets.QVBoxLayout() layout = QtWidgets.QFormLayout() main_widget.setLayout(g_layout) # Add Widgets self.parm = QtWidgets.QSpinBox() self.parm.setValue(30) self.parm2 = QtWidgets.QDoubleSpinBox() self.parm2.setValue(30) layout.addRow('Parameter', self.parm) layout.addRow('Parameter', self.parm2) self.exec_btn = QtWidgets.QPushButton('Execute') self.exec_btn.setStyleSheet("background-color: darkorange") self.exec_btn.setFlat( False) # global layout setting g_layout.addLayout(layout) g_layout.addWidget(self.exec_btn) ..
  9. Hi, Can it be possible to toggle the parameter search ( magnifier ) of a parameters pane in Python ? I would create a toggle to show invisible parameters . Thanks in advance ! Sz
  10. Hi, In H18 when a node ( which type is a digital asset ) is duplicated this happens: Any Ideas? Thanks in Advance ! Traceback (most recent call last): File "Mouse Event Handler", line 19, in <module> File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.348/houdini/python2.7libs\nodegraph.py", line 99, in handleEvent handler_coroutine.send(uievent) File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.348/houdini/python2.7libs\nodegraph.py", line 165, in handleEventCoroutine pending_actions) File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.348/houdini/python2.7libs\nodegraph.py", line 720, in handleEvent self.applyAdjustments(uievent) File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.348/houdini/python2.7libs\nodegraph.py", line 929, in applyAdjustments connect_outputs_to_multi_inputs = False) File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.348/houdini/python2.7libs\hou.py", line 10017, in copyItems return _hou.Node_copyItems(*args, **kwargs) OperationFailed: The attempted operation failed. Warning: Problem while synchronizing child node: Warning: Too many elements found for parameter "/obj/sphere_object1/vdbPlacer_001/bound1 Bounding Type". [/obj/sphere_object1/vdbPlacer_001/bound1] Warning: Too many elements found for parameter "/obj/sphere_object1/vdbPlacer_001/bound2 Bounding Type". [/obj/sphere_object1/vdbPlacer_001/bound2]
  11. Thanks for your answer ! Have a nice day ! I extended the code like this: def is_copy_paste_event(kwargs): if not kwargs['node'].name().startswith('original') and not kwargs['old_name'].startswith('original'): original_node = kwargs['node'].parent().node('original0_of_%s' % kwargs['old_name']) return True if original_node else False def checkAltDown(): from hutil.Qt import QtWidgets from hutil.Qt import QtCore m = QtWidgets.QApplication.keyboardModifiers() return m == QtCore.Qt.AltModifier if is_copy_paste_event( kwargs) and checkAltDown(): print 'alt_dup', kwargs['node'] hou.session._node_copy_mode_ = 'alt_duplication' elif is_copy_paste_event( kwargs): print 'copied', kwargs['node'] hou.session._node_copy_mode_ = 'copy_of_node' elif not 'original' in kwargs['node'].name(): if hasattr( hou.session, '_node_copy_mode_'): if hou.session._node_copy_mode_ == 'alt_duplication': print 'alt_renamed', kwargs['node'] elif hou.session._node_copy_mode_ == 'copy_of_node': print 'copy_renamed', kwargs['node'] del( hou.session._node_copy_mode_) else: print 'simple_renamed', kwargs['node']
  12. Hi, Can it be possible to make difference in event callbacks with copy, alt drag and rename a node. The problem is when Houdini make a node copy ( duplicate, or copy paste ) makes a renaming too. So in scripting I could not figure out how to determine which event occurs. So I want to know when rename or copy paste or alt drag happened. THANKS IN ADVANCE ! G
  13. Hide The Ortho Grid in Python

    Hi Everyone, Can the the ortho grid be hidden in python ( I sure it can be ) ? ( Not the reference Plane ! ) Thanks in advance ! G
  14. Change Top view to Perspective

    Hi, It seems like an easy question but I could not figure out somehow. How can I Change Top view to Perspective ? G
  15. Can I get somehow the to a previously clicked Network Editor position in python without registering events before to put a node to ? G
  16. Hi, Can a viewport (presp) transformation be stored and later restored back again. I was searching for the memory toolbars in python but I could not find. Thanks G
  17. Thanks, the key was to set the parm to scoped in python. G
  18. Hi, Can I force houdini to show keyframes of the selected node at the Playbar without opening the parm in the Animation Editor ? Cheers, G
  19. Any idea here ? Or other sollution ? Can a memory view cam (view not snapshot image) be used in python ? THX!
  20. Basic operators in vex / python

    A lot of good information ! THX
  21. Hi, Can the dragging nodes to shelf be reproduced in a python script ? It creates a bit of complicated hscript code inside the tool script field. I would use that code to transfer the nodes inside clipboard between home and office machine. The other thing i thought to save the nodes to file and transfer a binary data inside clipboard. Can that be ? Helps are wellcome ! Sz
  22. hotkey combined with ctrl

    I dont think that can work. That's a different hotkey.
×