Jump to content


  • Content count

  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won


galagast last won the day on February 13

galagast had the most liked content!

Community Reputation

166 Excellent


About galagast

  • Rank

Contact Methods

  • Website URL

Personal Information

  • Name
    Jeff Lim
  • Location

Recent Profile Visitors

6,156 profile views
  1. Getting Houdini Global Vars With Python

    Hi, apologies for resurrecting this. The current functions does allow me to grab the Houdini Global Variables. But is there a way to get a list of these? os.environ works, but I'm only after the Houdini Global Variables currently in my scene >_<
  2. Is this something close to what you are after? I used the xyzdist vex function to read in closest point data, which was then fed in to an Attribute Interpolate to attach the points even on an animated geometry. H16.5.438 Apprentice move_along_surface.hipnc
  3. Hi, I've attached a file where I added a point attribute called "angle", the computation is based on a forward direction. Is this what you were after? H16.5.438 Apprentice angle_v2.hipnc
  4. Freeze Transformations ?

    Have you tried the "Clean Transform" option of a geometry at the Object Level? (You'll need to move your geometry first at the object level) After selecting that, the parameters will be zeroed out. The pre-transform information is now stored.
  5. setting the dop io preset

    That 'presets' parameter is calling a callback python script. You could try this: theGeo = hou.node('/obj/geo1/dopio1') # Keyword argument needed by the internal invokePresetMenu function myArgs = {'node': theGeo, 'script_value0': 'pyro'} # The internal python function called by the presets parameter. theGeo.hm().invokePresetMenu(myArgs)
  6. Detection of open and closed surfaces

    Always glad to be of help! Cheers!
  7. Add Name Attribute Via Python

    The documentation is the first thing I look through. But I agree, it does kinda lack in the way of examples. Next I also google stuff, where the results are usually from this forum, or at Sidefx. For general python syntax and functions, I still use google. Lastly, if I have an issue and all of the above is still lacking.. I would try and post a thread to hopefully get some answers. As for examples, I try and check out built-in HDA's and peek inside the Scripts tab, sometimes it contains python code. Also if you explore the Shelf Tools, most of those uses a module in the form of 'tools' that you can find at $HFS\houdini\python2.7libs They have lots of functions there with descriptions. I'm also still just learning as I go with my day to day Houdini adventure. Wishing you the best of luck!
  8. Detection of open and closed surfaces

    Hi, I've updated the file. It now includes a way to create a group for each connected geometry, and only for those that are open. I used the Connectivity SOP to create 'class' IDs for each connected primitive. Passed everything onto a Foreach by the 'class' attribute, then used the npointsgroup() to filter/switch out only the open geometries, where it then creates a unique group just for that using the Partition SOP. H16.5.268 Indie - open_closed_tag.rar
  9. Detection of open and closed surfaces

    @Noobini Haha indeed! All the while I thought that you need to set the the group entity to Edges in order to have access to all the edge related options. So yeah, the Group Promote can be removed in this case, then just set the Group SOP to a Group Type of Points.
  10. Triggering Animated Crowd Layers?

    Closest I was able to do (that was related to this) was to modify the agent transforms in a wrangle. But it might not work if what you want are animated vertices. Maybe have a look at the agentcliptimes() function? I'll try and do a test later if I have time.
  11. Detection of open and closed surfaces

    Hi, I'm not sure if this is what you're after: open_closed.rar (H16.5.268 Indie) I used a group SOP to detect unshared edges, converted that group to points, then used the npointsgroup() expression to count and detect if there are open edges or not.
  12. Orientation Matrix Help?

    Hi, I checked out your scene and updated it. I added two angle values for yaw and pitch, which were then used in a rotate() function sequentially. You still had the @orient attribute passing through the Sweep SOP. Simply delete that and let the sweep use the PolyFrame's tangentu as N. H16.5.268 Indie - water_flower_v005_upl_jeff.rar I hope this helps!
  13. Calculating / matching orientation

    Hi, here's also another approach. Vex based. The only drawback as of now is that this will not work for non-uniformly scaled objects. H16.5.268 Indie - pc_match_jeff.rar
  14. Hey Ben, some of these threads might lead you in the right direction: And just in case you plan to use particles as points to copy onto: I hope this helps!
  15. Add Name Attribute Via Python

    Something like this? node = hou.pwd() geo = node.geometry() geo.addAttrib(hou.attribType.Point, "name", "") for point in geo.points(): point.setAttribValue("name", "piece" + str(point.number())) Then look at this post by Graham explaining why string types does not have a default value.