Search the Community
Showing results for tags 'input'.
-
In PDG network, how can I access Outputs (see image) of a preview node withing Python Processor context? In other words how can I access @pdg_output or workItem.output from Python Processor node? Update Feb 23, 2:13 pm I tried the following but it prints an empty array. for upstream_item in upstream_items: new_item = item_holder.addWorkItem(parent=upstream_item) print(new_item.inputResultData) Update Feb 23, 2:24 pm (Solved) After struggling with this for 4 hours I finally was able to figure it out by reading HDAProcessor code located at C:\Program Files\Side Effects Software\Houdini 18.5.408\houdini\pdg\types\houdini\hda.py It seams like most of default nodes store outputs with item.addExpectedResultData(...) call. So to get output values of a previous PDG node for upstream_item in upstream_items: new_item = item_holder.addWorkItem(parent=upstream_item) parent_outputs = new_item.expectedInputResultData I hope it helps someone.
-
PC.hip as you can see in the images below when I connect the position of the second input pc doesn't work correctly , what did I do wrong? and what's the warning in the last image? PC.hip
- 1 reply
-
- while
- pointcloud
- (and 6 more)
-
what are exactly the pre-solve and post-solve input of popsolver ? there isn't any explanation about these input in the documentation?
-
How could I query a node input if something is connected?
-
Hey, So I frequently make otls where I change what is being displayed based on what folder the user is looking at. I object merge different sections of the otl into a switch that has an output sop set to the 0th output underneath (since the display flag on the otl always shows the 0th output). A callback on the folder parm sets the input parameter of the switch, so as you change folders to edit different parameters, what is being displayed is changed. Then I use a second output sop to be the proper output of the otl, the finished product. I would love to be able to do this with only one output for my otl though. I think it would be nice to have an option on the output sop that doesn't just say ‘this node is output 0, this one is output 1’. It would be really handy if you could setup one output node that is the otls ‘display’ output, and a second that is the otls ‘output’ output if you will. I'm wondering if there is already a way to do this that I don't know about perhaps? Thanks! James C
-
- callback
- display flag
-
(and 5 more)
Tagged with:
-
I imagine this is very simple but I find building ui's with python a bit tricky (compared, for example, to Maya which is very straight forward). I want to create a simple window (or dialog or ui) with several text fields, float fields, int fields etc. I have it working with hou.ui.readMultiInput, but you don't have much control in terms of layout/styling or what data types are allowed/expected. What are the best functions for this kind of thing?