Jump to content


  • Content count

  • Donations

    60.00 CAD 
  • Joined

  • Last visited

  • Days Won


Everything posted by ikoon

  1. Scale Bullet Collisions

    Btw the @mass attribute of RBD objects should be also nice way to affect the movement. You can disable the Compute mass on the RBD Packed Object DOP and set your @mass attribute in sops.
  2. Scale Bullet Collisions

    Hi James, you could increase the Bounce (Physical parameter) on the collider. bullet bounce - v00.hiplc
  3. Set the template flag ( with CTRL ) in python

    Hi, it is called Selectable hou.nodeFlag.Selectable https://www.sidefx.com/docs/houdini/hom/hou/nodeFlag.html
  4. If you need exact number of random points, you could use Sort SOP (Point Sort: Random) and then Blast the right amount of points: This code removes approximate percentage: float thr = 0.15; float rand = rand(@ptnum + 0.654); if ( rand < thr) { removepoint(0, @ptnum); }
  5. What is wrong with my code

    Or maybe you wanted this? if (@P.y > 0) { v@Cd = set(0,1,0); }else { v@Cd = set(1,0,1); } if (v@Cd == set(0,1,0)) { v@N *= 5; // this line changed }
  6. What is wrong with my code

    Hi Gabor, it seems to work as expected. You can assign v@N = 5, but when doing so, you are abusing the syntax a bit. Houdini casts that 5 into a vector {5,5,5} Did you want something like this? if (@P.y > 0) { v@Cd = set(0,1,0); }else { v@Cd = set(1,0,1); } if (v@Cd == set(0,1,0)) { v@N = {0,5,0}; // I changed this line }
  7. I believe, that you could send particles along the surface (or smoothed expanded surface by SDF functions). A particle would act as a head of snake. As in this tutorial, you need two vectors ... tangent and cross: https://vimeo.com/162213251 At first, those particles will read the tangent direction of the circle (or the line) and you can add a bit of cross vector. Later, they will read mainly the cross vector (and swirl more and more around the surface). At the very end, you could let the "heads" go far from the surface. To make the snakes "pack up" over each other, you will probably need a sop solver and feed the polywired trail into the SDF. Depends on how much realism is needed.
  8. @makah21803 to color an input dot of a hda, colour the inputs inside that hda:
  9. Animatrix thank you very much for the OTL! Five years passed and I am thinking ... now that we have many new Attribute nodes, is this feature inbuilt in Houdini somewhere?
  10. Hi Brandon, what code do you use? I tried this and it prints the contents of the sop solver. Important thing is, that the editable part of the sop solver is in the /d/s sub network. I am on version 18.5.408 node = hou.node('/obj/geo1/solver1/d/s') node.asCode(recurse = True, brief = True)
  11. Table Import Sop might help: https://www.sidefx.com/docs/houdini/nodes/sop/tableimport.html
  12. Hi HIroki, you have to cast v@tangent like this: @N = v@tangentv; Without v@, Houdini considers only first float of @tangent and casts it into other components. For example tangent {-0.520081 , 2.20691e-08 , 0.854117} becomes N {-0.520081, -0.520081, -0.520081} You may check the Geometry Spreadsheet. By the way @N or @v or other common attributes work without v@, just because they are so common that SideFX saved our time so we don't have to type it EDIT: You may read more about the "Non-float attributes with known types" here in the docs: https://www.sidefx.com/docs/houdini/vex/snippets.html
  13. Camera Offset X & Y

    Screen window X/Y It is camera parameter, value 1 is 100%
  14. Hi, I haven't used HQueue for a very long time, so I am not able to help now unfortunately. But you should probably do the tests from the docs ... to see, if the services are running well and computers see each other: https://www.sidefx.com/docs/houdini/hqueue/gettingstarted.html Or try to describe the issue here https://www.sidefx.com/bugs/submit/ and the Support team should be able to help you.
  15. Hello, I reinstalled my little farm and I have the issue, as attached: - HQueue ERROR: Cannot find file ... - but I have tried to manually run hython and load the file ... and from the command line tools everything works fine - I turned off the firewall and restarted the HQueueClient service. I have no other ideas. Please, where might be the problem?
  16. dealing with open geometry

    This might help, in some cases. Divide SOP, Remove Shared Edges, and then Fuse with original. At least Divide SOP might expose to you, where the holes are, and take care of them separately?
  17. delete line segment

    Hi, you may try different approach: Use the Polyframe SOP to create N as a tangent: And then the Group Create SOP to group by N: And then Dissolve:
  18. Making function for returning array doesn't work

    Hi amin, this works, I just added the "function" function int[] amin() { return {1,2,3,4,5,6}; } i[]@test = amin(); EDIT: I am just adding link to the docs: https://www.sidefx.com/docs/houdini/vex/lang.html#notes
  19. Hi, if you would like only one key to toggle the states, you might want this script. I will copypaste it from the sidefx forum, original by Archie is linked below You can create the simple script for toggle between “Auto Update” and “Manual update”, for example: mode = hou.updateModeSetting().name() if mode == 'AutoUpdate': hou.setUpdateMode(hou.updateMode.Manual) if mode == 'Manual': hou.setUpdateMode(hou.updateMode.AutoUpdate) https://www.sidefx.com/forum/topic/21292/?page=1#post-99649
  20. Parameters locked and greyed out

    Hi Dominic, you probably accidentally created a New Take. You can go back to the Main Take and delete the new one in a Take List (image below).
  21. Hello, please: - I have a curve SOP with few points - then I edit the @P within the "Geometry Spreadsheet" - the new @P are not transferred into the Coordinates and the Curve SOP gets "Soft Lock" I have tried to find a help about the Soft Lock and it seems to be obsolete - can I transfer the edited @P or other attributes to the SOP node? - is there some other user friendly way to edit for example Curve SOP Coordinates? The line input with commas is not user friendly. Thank you very much for patience with my noob questions
  22. additional node infos

    Hi Olly, do you mean the "Asset Bar"? I copypasted the image from this site: https://learncreategame.com/techart/houdini-digital-asset-versioning/
  23. Can you rotate (and reposition) those "some points" upfront? Instead of rotating the heavy geometry. Then you could use the Ray Sop just once, for all the "some points" and just one collision heavy geometry.
  24. Btw in that example, I also added a VDB Visualize Tree - Points with values. With that node, you can see, what are the values of SDF inside your Container. In your example, the minimum SDF value inside the container is -0.495, so "old min" should be set to -0.5. The fit() functions remaps samp for the ramp (because ramp wants the values to be 0-1). (You could also proceduralize that "old min" with Attibute Promote set to Minimum ... if you want to, let me know)
  25. Hi, I attached an example. I think that technically, you are doing it right. Maybe try to add just a little bit of that gradient? v@v -= grad * 0.01; If you want to use the samp, then the wrangle might look like this: float samp = volumesample(2, 0, @P); vector grad = volumegradient(2, 0, @P); float omin = chf("old_min"); // 0 in -1 to 0 float omax = chf("old_max"); // 0 in -1 to 0 float nmin = 0; float nmax = 1; samp = fit(samp, omin, omax, nmin, nmax); samp = chramp("dist",samp); v@v -= normalize(grad) * samp * 0.01; Also you may toggle the Fill Interior on the VDB from Polygons. Btw this is great tutorial, you may jump to 36th minute, or so: https://vimeo.com/162213251 example.hiplc