Jump to content

gemini

Members
  • Content count

    130
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

4 Neutral

About gemini

  • Rank
    Initiate
  • Birthday 08/03/1975

Contact Methods

  • Website URL
    https://vimeo.com/user726547

Personal Information

  • Name
    Szabolcs

Recent Profile Visitors

1,967 profile views
  1. 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) ..
  2. 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) ..
  3. 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
  4. 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]
  5. 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']
  6. 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
  7. 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
  8. Change Top view to Perspective

    Thanks !
  9. 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
  10. Can I get somehow the to a previously clicked Network Editor position in python without registering events before to put a node to ? G
  11. Thanks, the key was to set the parm to scoped in python. G
  12. 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
  13. Any idea here ? Or other sollution ? Can a memory view cam (view not snapshot image) be used in python ? THX!
×