hi
i got a little problem with ptqy and python sop…looking for some advice here
how to set parameter value from pyqt value(when moving slides)
import hou
import sys
sys.path.append(“C:\Users\Administrator\Documents\houdini11.0\script”)
from PyQt4 import QtCore, QtGui
import pyqt_houdini
from click import Ui_Form
class MyForm(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.ui = Ui_Form()
self.ui.setupUi(self)
QtCore.QObject.connect(self.ui.pushButton,QtCore.SIGNAL(“clicked()”),self.make)
QtCore.QObject.connect(self.ui.horizontalSlider,
QtCore.SIGNAL(“valueChanged(int)”),self.slide)
def make(self):
hou.node(“obj/geo1”).createNode(“grid”)
def slide(self):
self.b = self.ui.horizontalSlider.value() #pyqt slide value
setNum = hou.node(“/obj/geo1/PyQtEtc11”)
print self.b #working fine
#setNum.setParms({“sizer”:self.b}) # is not working every moments
def click():
app = QtGui.QApplication()
myapp = MyForm()
myapp.show()
pyqt_houdini.exec_(app,myapp)
click()
print self.b
setNum.setParms({“sizer”:self.b})
the problem Is executed only once
any idea welcome