Jump to content

Sean-R

Members
  • Content count

    92
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won

    1

Sean-R last won the day on March 4 2018

Sean-R had the most liked content!

Community Reputation

25 Excellent

About Sean-R

  • Rank
    Peon

Personal Information

  • Name
    Sean Rowe
  • Location
    Adelaide

Recent Profile Visitors

1,252 profile views
  1. Vellum-popnet issue

    Hi Michal, I put an "*" in the Pin Points parameter to include all the points and set Pin Type to Soft. The pigs now follow the animation and interact with each other. issue_fixed.hipnc
  2. Have you tried fit($FF, 1, 600, 1, 100)
  3. Huh, strang. At least it sorted itself out!
  4. Looks like you're missing the constraint_type attribute. Try this in a primitive wrangle: s@constraint_type = "all";
  5. string array compare

    How are you referencing or isolating your primitive number? If you want to isolate the left shoe using the path, you can use @path=="leftShoe" in the group parameter of a blast node. In an if statement you could do something like this: if(s@path != "leftShoe"){ removepoint(0, @ptnum); } If you really want to go the string array route maybe the strmatch() function will help?
  6. Expression on PopDrag Error

    Are you trying to set the third element of windvelocity? If so, give this a try: if(@Time > 2.8){ windvelocity.z = -2; }
  7. subtracting centroid using vex

    Hi Matt, It looks like it's an order of operations thing. If you wrap @P2-@P in brackets it seems to work fine
  8. For Each Attribute Value

    Try a for-each point or for-each primitive depending on the attribute type, then enable "Piece Attribute"
  9. Simulation inside a loop

    You don't need to use a foreach. Look into wedging: http://www.sidefx.com/docs/houdini/nodes/out/wedge.html
  10. list of vertices

    To put the vertices in an array attribute: i[]@prim_vertices = primvertices(0, @primnum); You have to declare @prim _vertices as an array. You don't need the first line of your code, that would declare a variable. Unless that's what you want of course
  11. Read files through a loop

    The file merge SOP should do the job: http://www.sidefx.com/docs/houdini/nodes/sop/filemerge.html
  12. Attributes inside condition

    That should work, @NewVec should be visible in the geometry spreadsheet. To get it to write as a vector attribute you will need to put a v before the @.
  13. PackedObject scaling with time in DOP

    The Entagma guys have a nice solution for this:
  14. Set Point Pivot Rotate Primitive along Point Pivot

    The code in a wrangle is applied to each prim/point/whatever at the same time. In your code your say that only primitives with a primitive number of 0 and 4 can be white which isn't possible as it can only have one @primnum assigned, try replacing "&&" with "||". You will also need to initialise the @Cd attribute before the if statement, this should work: @Cd = 0; if(@primnum == 0 || @primnum == 4){ @Cd = 1; } If that's all that you are doing in the ForLoop, then I don't think you need it
  15. Set Point Pivot Rotate Primitive along Point Pivot

    Hey! So I think I get what you mean. I used the @vrtList that you created to get the first and second vertices of each prim, blended the positions to get the midpoint and then created a point at that halfway position. I've attached an updated version of your scene with the following code: i[]@vrtList = primvertices(0,@primnum); int vp1 = vertexpoint(0, @vrtList[0]); int vp2 = vertexpoint(0, @vrtList[1]); vector midpoint = lerp(point(0, "P", vp1), point(0, "P", vp2), 0.5); addpoint(0, midpoint); If you're using this as a pivot for the primitive you don't need to create a point, just bind the lerp expression to an attribute to reference in the primitive SOP. To see the vertex numbers in the viewport, hit D to bring up the Display settings and select Numbers from the Vertex checkbox list. I'm not sure why you need the Foreach network, especially set to Count. What are you trying to achieve? halbetweenpoint_b_v2.hipnc
×