Jump to content


  • Content count

  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

2 Neutral

About logix1390

  • Rank

Personal Information

  • Name
  • Location

Recent Profile Visitors

2,074 profile views
  1. create lines from point cloud to center point

    @vicvvshThis is great, thanks a lot. I broke down your code line by line and it makes complete sense now. appreciate the help
  2. Hello I have a bit of an interesting problem. I have a bunch of small point clouds and I want to create a line from each point to the center point. Each point cloud has its own id. The center point has a matching id . I thought using an addprim function would do the trick but its not working... I have something like this: if(i@id==i@idt){ int prm = addprim(0, "polyline", i@id, i@idt); int vtx = addvertex(0, prm, @ptnum); } I will attach my file for anyone that wants to take a look. Thanks create_line_point_cloud.hip
  3. foreach -setpointattrib

    @bunker Thank you for the examples Bunker. Makes sense now
  4. foreach -setpointattrib

    hello. I am trying to set color to the points in the array that the nearpoints function found. I am trying to set it in a foreach loop. However, it is not working for some strange reason. I'm sure im going wrong somewhere. Here it is: i[]@ptarray = nearpoints(1, v@P, chf("maxDist"), 133); foreach(int pt; @ptarray){ setpointattrib(0, "Cd", pt, {1,0,0}); } foreachloop_setpointattrib.hipnc
  5. foreach- index vs iteration of all points

    @haggi Thanks for the explanation. Makes a bit more sense to me now.
  6. foreach- index vs iteration of all points

    @haggi Your right about setting it to detail. That works. I'm still a bit confused about this when its not set to detail and set to points. Thanks
  7. foreach- index vs iteration of all points

    @haggi I understand that its iterating over every point. I guess I am a bit confused on the fact that the setpointattrib function is actually returning a value based on the accumulation of ALL the points it was iterating over rather than just the amount of points in the array that I specified. The point function seems to be doing what I was expecting and giving me the last point in the array that I specified. Based on the logic of it running over every point, wouldn't the point function return the last point on the grid? The setpointattrib function doesn't seem to care about the index in the array and accumulates the value based on all the points but the point function seems to respect the index in the array. I realize I probably sound a bit confusing . I apologize Thanks for the reply
  8. Hello, I have a few questions about the foreach in vex that is probably better explained with an actual example I'm working on. First Example: i[]@pts = neighbours(0,3); //get array/list of point numbers foreach (int pt; @pts ){ v@pos=point(0, "P", pt); //gets the last index point position. Point 4 in this case } Second Example: i[]@pts = neighbours(0,3); //get array/list of point numbers foreach (int pt; @pts ){ v@y= set(0,1,0); //value setpointattrib(0, "P", pt, @y, "add"); //Setting the @y value on each point inside of the array. //It will add the @y value every iteration . In this case, the iterations are the number of points on the grid (25 points) ?? //Therefore we are adding the @y value on each point in the array 25 times ?? } In the First example , I use the point function within the foreach loop and it returns the point position of the last index in the array. That makes sense. In the Second example, I am trying to set a value on the point positions inside the array using a setpointattrib function but i can see that it is actually iterating over all my points in the grid (25 points) which means it will be adding (0,1,0) 25 times to each point number in the array. It seems like the foreach is working differently in both examples which is confusing. I am aware that the wrangle sop iterates over all the points. I get it. So why is it that in the first example the foreach is iterating over the points in the array ( which is what I expected) and the second example it is iterating over ALL the points and adding that value 25 times instead of just 4. Hopefully i'm explaining this correctly. I will attach my scene file for anyone that wants to take a look Thank you foreach_iteration_question.hipnc
  9. mantra error

    Hello Lately I have not been able to render a sequence to Mplay. I keep getting an error. I am literally just using the pyro shelf tool and trying to render the sequence. I uninstalled the latest houdini which was houdini 18.532 and then I reinstalled it. I even went back to the version before which is 18.499 and still the same problem I have no idea how to fix this. I will attach a screenshot of the error message.
  10. Scale by Attribute -Vellum

    @Noobini. Ahh yeah that would make sense. Thanks !
  11. Scale by Attribute -Vellum

    Hello, I'm trying to use the "scale by Attribute" option for the Bend stiffness for my vellum hair. However it does not seem to work I created a primitive attribute called "bendstiffness" before it goes into the Vellum Constraints sop. This seems to have no affect on the sim even though the attribute seems to be initialized properly. I'm not sure if I'm doing this correctly... Is the "scale by attribute" parameter meant for customization of the attribute AFTER the Vellum constraints node or am I supposed to customize my attribute BEFORE it gets plugged in ? I will attach my file for anyone that wants to take a look. Thank you scale_by_attribute_vellum.hipnc
  12. returning a string with prims function

    @tamagochy Thank you !
  13. Hello, I am trying to return a string using a vex function. I looked it up and it seems as if the "prims" function does this according to the help docs: https://www.sidefx.com/docs/houdini/expressions/prims.html However, I am not able to get this to work for some reason. I'm doing something like this: s@temp= prims("obj/geo1/id_name", 0, "id_name"); I will attach my test file for anyone that wants to take a look Thank you prims_function_return_string.hipnc
  14. orient a gradient ramp on an object

    @anim Thank you anim, Makes perfect sense.
  15. orient a gradient ramp on an object

    Hello, I have a test object floating in space . I want to get a ramp that is oriented along the direction its facing no matter what the rotation or position is... I am using a "relative to bound" vop and using the x component to visualize the ramp but it seems like its not actually relative to its bound but to the world. I will attach a screenshot of what I mean. The green arrow is where I want the gradient ramp to face but the red arrow represents what its actually doing ... I will also attach my scene for anyone that wants to take a look. Thanks Ramp_orient.hipnc