-
Content count
89 -
Donations
0.00 CAD -
Joined
-
Last visited
-
Days Won
1
younglegend last won the day on May 3 2018
younglegend had the most liked content!
Community Reputation
15 GoodAbout younglegend
-
Rank
Peon
- Birthday 05/21/1994
Contact Methods
-
Website URL
kishenfx.com
Personal Information
-
Name
PJ
-
Location
Canada
-
Can you proivde the error message? I have provided installation instruction at the bottom of the linked page.
-
younglegend started following Load new instance of houdini from current scene, Un-hide Nodes and opunhide all nodes using python
-
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
-
younglegend changed their profile photo
-
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!
-
python Load new instance of houdini from current scene
younglegend replied to younglegend's topic in Scripting
While on this topic, how do i do an event callback for the new instance? I can do it for the current scene using hou.hipFile.addEventCallback(self.some_hip_event) But been trying to add one before it loads another new instance. -
python Load new instance of houdini from current scene
younglegend replied to younglegend's topic in Scripting
Awesome. Thank you! -
How do you load a new instance of houdini from current scene's shelf tool? hou.hipFile.load(path) loads to current scene.
-
Hey ppl! So in a standard flip simulation, i'm sourcing collisionvel (vdb) from a source volume. How do you apply that collisionvel only to a particular point group? Not sure what i have to modify in the flip solver or is there a easier way to control this? Thanks!
-
Solved it! Had to use a sop solver under crowd source. For some reason the crowd trigger weren't updating the particle attributes. Guess it can only read already updated ones.