[[Template core/front/profile/profileHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
-
bump
- 4 replies
-
- transforms
- matrix
-
(and 1 more)
Tagged with:
-
I'm trying to match (align) the position, rotation and scale from 2nd input.
- 4 replies
-
- transforms
- matrix
-
(and 1 more)
Tagged with:
-
Hey ppl! I'm trying to extract transform, scale and rotation from one geometry and apply it to another with VEX. In my case I'm extracting from a grid (2nd input) and applying to heightfield (1st input) which only takes Y rotation. Help me figure it out? Thanks! transform.hipnc
- 4 replies
-
- transforms
- matrix
-
(and 1 more)
Tagged with:
-
Hmmm....the grid seems to be still moving down a tiny bit. Can be ignored in my case but i'm still curious why. One workaround i'm doing is using dot product and use the values in the shader to displace.
- 3 replies
-
- ripple solver
- solver
-
(and 1 more)
Tagged with:
-
younglegend started following opunhide all nodes using python, Ripple solver issue and Un-hide Nodes
-
Hello ppl. I'm trying to figure out an issue with my simple ripple solver setup. The grid over which i'm triggering ripples, seem to moving down the Y direction slowly throughout the simulation. What am i missing? Attached the scene. Thanks! Ripples.hipnc
- 3 replies
-
- ripple solver
- solver
-
(and 1 more)
Tagged with:
-
Can you proivde the error message? I have provided installation instruction at the bottom of the linked page.
-
Hey guys! Sharing a simple tool to reveal hidden/deprecated houdini nodes, incase you need them or just miss them. It's free, hope you find it useful. cheers! Use with caution, some nodes might make your scene unstable! https://gitlab.com/kishenpj/unhide_nodes
-
I'm dragging the text from the QWidget (QTreeView) to a wrangle node. Right now when i drop the text on to a wrangle, it copies only the first line and the rest shows up when i delete those lines.
-
As the title suggests, how do you drag and drop Qt data on to a parameter? I was able to use this example as reference. But in my case the i couldn't make the drop event register. The code i have now kinda works, but the dropped text is wierd. What's the right way to do this....could use some help! I'm attaching an example code. from PySide2.QtWidgets import * from PySide2.QtCore import * from PySide2.QtGui import * import hou class TreeWidget(QTreeView): def __init__(self): super(TreeWidget, self).__init__() self.setDragEnabled(True) # def dragEnterEvent(self, event): # print "dragEnterEvent" # event.acceptProposedAction() def mouseMoveEvent(self, event): print "MoveEvent" mimeData = QMimeData() data = (self.selectedIndexes()[0]).data() mimeData.setText(data) drag = QDrag(self) drag.setMimeData(mimeData) drag.exec_(Qt.CopyAction | Qt.MoveAction, Qt.CopyAction) # def dropEvent(self, event): # print "dropEvent" # mime_data = event.mimeData() class Example(QWidget): def __init__(self): super(Example, self).__init__() self.build_ui() def build_ui(self): self.setGeometry(300, 300, 150, 250) self.setParent(hou.qt.mainWindow(), Qt.Window) mainlayout = QVBoxLayout() self.setLayout(mainlayout) self.tree_widget = TreeWidget() self.tree_widget.setRootIsDecorated(False) self.tree_widget.setHeaderHidden(True) model = QStandardItemModel() self.tree_widget.setModel(model) mainlayout.addWidget(self.tree_widget) for i in range(10): parent_item = QStandardItem('Example_{0} \nnew_line_{0} \n '.format(i)) model.appendRow(parent_item) def dragEnterEvent(self, event): event.acceptProposedAction() # def dropEvent(self, event): # print "dropEvent 2" # str = event.mimeData().text() # event.acceptProposedAction() ex = Example() ex.show()
-
oh you're right, it does. Had to restart houdini for some reason. ok so hou.hscript("opunhide Sop") gives me all the hidden sop nodes but since it's returns a string, how do you make it a list so that i can loop for each node and say hou.hscript("opunhide Sop <node_name>") sop_list = [] for i in hou.hscript("opunhide Sop"): sop_list.append(str(i)) for sop in _sop_list: node _name = (sop.split(" ")[-1]) print node_name This won't work as i realized t's returning a string, not list of nodes
-
How do you opunhide all nodes in a particular category or a bunch of specific nodes using python? I wish to add this in my startup script. a simple hou.hscriptExpression("opunhide Sop point") dosent seem to work. Nor does hou.hscript(). What am i doing wrong?
-
you can set color or MainWindow right after you create it. self.setStyleSheet("QMainWindow {background: 'green';}") Not sure how to change the color of background dynamically, but you can use another widget and connect it's signal to update the color. Cheers!