Found 166 posts.
Search results Show results as topic list.
Houdini Indie and Apprentice » Question about procedural noise shading
- xtimmyx
- 166 posts
- Offline
I'm also wondering how to input a, for example fractal noise or brownian and similar which I use all the time in Maya shading networks.
Houdini Indie and Apprentice » $-sign on non-english Macintosh
- xtimmyx
- 166 posts
- Offline
stevenong
Hi,
What are you trying to do exactly? Shouldn't you be able to select the primitives and apply the operation to them?
Alternatively, you can group the primitives and use the following function to return the primitive numbers:
/ > exhelp primlist
string primlist (string surface_node, string group_name)
The return string is a space separated list of primitive numbers.
RELATED
* haspoint
* pointlist
* pointgrouplist
* hasprim
* primgrouplist
REPLACED BY
- hou.Geometry
- hou.PrimGroup
- hou.Prim
Cheers!
steven
All sort of things, the last time I needed it was when selecting a group of points in an add SOP. I guess I could just make a group but when it's just a few points it seams a little unnecessary. And my workflow is often to create the nodes first, then input values instead of creating them with a selection.
Houdini Indie and Apprentice » $-sign on non-english Macintosh
- xtimmyx
- 166 posts
- Offline
jeff
1. Transfer selection…
You can write a quick shelf tool that returns the primitive numbers to a floating console. You can then copy/paste the numbers in to your field.
Just RMB in an empty spot on your shelf of choice and choose “New Tool”.
Rename the tool in the Options folder:
- Save To: c… …/toolbar/grab_selection.shelf where the c… …/ is the full path to your home houdini directory
Name: grab_selection
Label: Grab Selection
Copy and Paste the python code below in to the Script section of the tool:
import toolutils
import soptoolutils
activepane = toolutils.activePane(kwargs)
# Get selected geometry from the scene
selection = activepane.selectGeometry(
prompt=toolutils.selectionPrompt(hou.sopNodeTypeCategory()) )
print selection
Press Accept and you're done.
Just go to geometry mode, select some faces, press the tool or tab-type the tool from the viewport to get a floating console with your selection. Just copy/paste in to your field.
This tool will return primitive selections in to your console.
Note: You can run this code from a button with some minor changes so you can have a “grab viewport selection” button for any field that takes a list of geometry.
Note: I attached the tool grab_selection.shelf. To install it, download then move it in to your $HOME/houdini9.5/toolbar directory. Then in the shelf you want to add the tool to, RMB > Edit Shelf then in the Tools directory find the tool Grab Viewport Selection and include it by simply selecting it.
Thank you, I will try that one. Even though it's not perfect it way better than my current method. But really weird that you can't just, for example right click in the text box and choose “Import selected” or similar.
Help with the keyboard bug/setting would also be appreciated.
Houdini Indie and Apprentice » $-sign on non-english Macintosh
- xtimmyx
- 166 posts
- Offline
I have two quick questions (which bothers me that I couldn´t find out myself).
1. How do I transfer my selection from the viewport to primitive numbers to be inserted in a parameter field?
The way I usually do that is by doing my selection in the viewport, then pressing backspace/delete to get a blast node where my selection is printed out as primitive numbers, then copy those and delete the blast node. Not very convenient.
2. For some weird reason I can´t do any “ALT GR-characters” in Houdini for example: ©@£$∞§|≈ (with swedish keyboard). I have probably tried every combination of shift/ctrl/alt/command there is without luck. Anyone got any idea? Worth noting is that I as mentioned runs on macintosh and with swedish keyboard layout.
1. How do I transfer my selection from the viewport to primitive numbers to be inserted in a parameter field?
The way I usually do that is by doing my selection in the viewport, then pressing backspace/delete to get a blast node where my selection is printed out as primitive numbers, then copy those and delete the blast node. Not very convenient.
2. For some weird reason I can´t do any “ALT GR-characters” in Houdini for example: ©@£$∞§|≈ (with swedish keyboard). I have probably tried every combination of shift/ctrl/alt/command there is without luck. Anyone got any idea? Worth noting is that I as mentioned runs on macintosh and with swedish keyboard layout.
Edited by - Jan. 29, 2009 18:51:04
Houdini Indie and Apprentice » Delete non-quads
- xtimmyx
- 166 posts
- Offline
Thanks guys! I actually did notice the NVTX-parameter in the help but I must have misread the description. Anyway, this did the trick just perfect. Thanks.
Houdini Indie and Apprentice » Delete non-quads
- xtimmyx
- 166 posts
- Offline
Hi
I'm looking for a way to delete all primitives from an object that is not quads (four edges/points). I guess using the delete node is a suitable way to do it but I've looked through the help and can't find any suitable variable to use in the expression. Or if there is any other way to to it would be fine too.
Probably an easy thing to achieve but my Houdini skills aren't what their supposed to be just yet.
I'm looking for a way to delete all primitives from an object that is not quads (four edges/points). I guess using the delete node is a suitable way to do it but I've looked through the help and can't find any suitable variable to use in the expression. Or if there is any other way to to it would be fine too.
Probably an easy thing to achieve but my Houdini skills aren't what their supposed to be just yet.
-
- Quick Links