Search the Community
Showing results for tags 'create'.
-
how can i delete/create nodes in a locked hda from the python module? i am using a button with a callback script that runs a delete() function for n in node.children(): n.destroy(True) i get an error message that i don't have permissions because the asset is locked. Is there a way around this? callback_parm_kwargs_hda_node.hip
-
Hello, newbie here. I'm following an old tutorial and in order to delete closed/un-closed primitives the guy created an attribute called "closed" which is then referenced in a delete node. He uses $CLOSED in the delete node but when I do the same it shows it as an error. Is this a deprecated way of calling the attribute? I tried @CLOSED instead and that seamed to work but I have troubles further down the line and I'm trying to figure out if this makes a difference.
- 1 reply
-
- depricated
- old
-
(and 4 more)
Tagged with:
-
Hi, I wonder if it's possible to initialize a curve from a line and be able to modify the curve from the Curve node. I'll explain what I'm doing right now. Of course, it doesn't work, but I'm sure it will help you to understand what is my goal. Fist, I have a Null node called curve_setup. This node contains parameters that controls my line. So, the length of the line and the number of points on the line. Next, I have an Attribute Wrangler node. This node creates the line using the parameters in the curve_setup. At this point, I did some research on the Curve node and the documentation says that I can "use a space-separated list of coordinates in this field to specify points". Then, there's a list of different format to specify different points. There's one format that got my attention. It's the Pn format which "copy the coordinates of point number n in the input geometry". So, I said to myself : "Is there a way to copy the coordinates of all the points of my previously created line in the coordinates of my curve ?". Then I did more research. I learned that the Coordinates parameter is a string, so I have to use expression functions. That said, I learned that there is a expression function called pointlist that returns a "space-separated list of point numbers". Since this function returns something like this : "0 1 2 3 4 5 6 7 8 9", I though that I could format the string and add a "P" in front of every number in the list. Since Pn "copy the coordinates of point number n in the input geometry", It would create a curve based on the line I created earlier and since I can see those points from the Curve node, I would be able to modify those points using the Curve node handle. Now, I just need to learn how to format the string within the Coordinates parameter of the Curve node.
-
Hello! Sory for my English I'm trying create geometry with AttribWrangle node in Detail mode. I use addpoint, addvertex and addprim nodes. When I created some points how could I get access to them into the node? For example, I created point pnt0 = {0,0,0,}. And now I want to create point pnt1 which is close to pnt0: int X = 3; int pnt0 = addpoint(0, set(0,0,0)); int pnt1 = addpoint(0, set()); - and here I want to get position of the first point and add X to each coordinates. Is it possible?
-
normals Can't create normals on straight poly line
SteveNi posted a topic in General Houdini Questions
Hi I have a straigth line, created by the line sop, and I want to create some Normals for its points. I tried by typing: v@N = @N in a wrangle node, or by using the poly frame sop, now this would normally work, but it seems like the normals cant be created if the curve is completly straigth, those methods works only if the curve has some kind of curvature (not straigth). Why? -
Hello everyone, I am fracturing a geometry and need to delete the pieces bellow a certain size. My problem is that I don't know how to delete based on size. My guess is I need to create a size attribute somehow and then delete based on that. I am sure this should be pretty straight forward but couldn't find any info on that, please give me some ideas, thanks!
- 2 replies
-
- rbd
- destruction
-
(and 5 more)
Tagged with:
-
Hi everyone, Sorry for the remedial questions. Still new to the Houdini coding world. I have a long vector of ordered positions in space (Houdini calls these Vertices? Is that true?), I also have per-face index information (What I think Houdini calls Points), as well as some normals and UVs. All of these collectively defining a single polygonal surface. From this: http://www.sidefx.com/docs/hdk13.0/hdk_geometry_intro.html It seems that I need to populate the Point Index Map, the Vertex Index Map, the Primitive Index Map, and the Primitive List. Where my primitives represent the faces of the polygon. Does anyone have an example of code that does this? I'm then going to shove that GU_Detail in as a member of a packed prim, but that's a story for another day... Thanks for any tips, Alex