Jump to content


  • Content count

  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won


fsimerey last won the day on March 13

fsimerey had the most liked content!

Community Reputation

19 Good

About fsimerey

  • Rank

Contact Methods

  • Website URL

Personal Information

  • Name
  • Location
  1. Rotation matrix pivot point

    It's like you translate the points at origin with pivot as center (@P - pivot), then rotate (* matrix) and replace at the pivot position (+ pivot)
  2. rotation matrix to degrees

    I don't know if it's what you are looking for exactly, but the instance function create a transformation matrix. You just need to multiply to @P. https://www.sidefx.com/docs/houdini/vex/functions/instance.html Here a simple vex code to rotate all points with an axis and pivot attributes previously defined. // rotate vector scale, postrotation; vector4 orient; float angle = ch("ang"); matrix3 rotm = ident(); rotate(rotm, radians(angle), v@axis); orient = quaternion(rotm); scale = 1; postrotation = 0; matrix xform; xform = instance(v@pivot, @N, scale, postrotation , orient, v@pivot); @P *= xform; EDIT: You can also take a look with quaternion, eulertoquaternion, qrotate, etc.. for rotation
  3. Mplay Command line compare

    I think the problem is dash symbol. I'm pretty sure that interpreted as a minus sign by mplay. To avoid this kind of problem, I'm never use dash, space or accent in my naming.
  4. Mplay Command line compare

  5. Mplay Command line compare

    Do you render frames with $F or $F4 ? I think about each system sort file numbers. 0001, 0002..., 0010 or 1,10,2 etc...
  6. Mplay Command line compare

    I tested your command line and it's works fine. Are you sure is not a problem with your path ? /FolderA/*.jpg why do you start with / ? That means your folder is at the root of your file system.
  7. Convert a group into string using Python

    Ok in that case ask for convert a group in string but not 'Convert a group into string using Python'
  8. Convert a group into string using Python

    Ok, I understand but it's not that difficult, even I can do it: node = hou.pwd() geo = node.geometry() edges = geo.findEdgeGroup("group4").edges() mystring= "" last_pt = "" for i in range(len(edges)) : edgestr = edges[i].edgeId() s = edgestr[1:].split("-") start_pt = s[0] end_pt = s[1] if last_pt == start_pt : mystring += "-" + end_pt else: mystring += " p" + start_pt + "-" + end_pt last_pt = end_pt
  9. Convert a group into string using Python

    In 17.5.360 this kind of string doesn't work in an edge group node in 'Base Group' parameter. The best smart is "p-10-11-12-13 p100-101-102-103" and you can check with a variable if the last computed point was the actual minus 1 to replace the result EdgeId()
  10. Convert a group into string using Python

    I'm not a python specialist, but if your goal is to get a basegroup string, I would do this: geo = hou.node("/obj/geo/geowithgroup").geometry() edges = geo.findEdgeGroup("mygroup").edges() for i in range(len(edges)) : mystring += (edges[i].edgeId()) + " "
  11. pcloud en external data

    There is a VEX function to find the closest point > https://www.sidefx.com/docs/houdini/vex/functions/nearpoint.html And for a list of the all the closest points in a geometry https://www.sidefx.com/docs/houdini/vex/functions/nearpoints.html
  12. Question with 'vertexindex' functioin

    I think you misunderstand what is a vertex. See the documentation here : https://www.sidefx.com/docs/houdini/model/attributes.html#geometry-components You can display the vertex number in the display option panel.
  13. Creating alias on command line [linux]

    You must source houdini_setup, then launch houdini. houdini_run () { MAJ=17.0 MIN=352 # edit these to suit your environment HOUDINI_ROOT="/opt/hfs${MAJ}.${MIN}" cd ${HOUDINI_ROOT} source houdini_setup # launch houdini houdini $@ }
  14. VEX: get attribute values into an array

    Do you run this wrangle in Detail Mode ? I'm pretty sure not if you can access to the @ptnum variable...
  15. Randomize point selection pattern

    @group_targetPoints = 1; int delta = 2; i@modulo = 10 + int(ceil(delta * fit01(rand(@ptnum + 354656), -1, 1))); if(@ptnum%@modulo) { i@group_targetPoints = 0; } I use delta to add or subtract the module 10. Here 10 +- a random between -2 to +2. I think it's not the good way. This approach seems better: @group_targetPoints = 0; int delta = chi("delta"); i@modulo = int(ceil(delta * fit01(rand(@ptnum + 356156), -1, 1))); if(@ptnum%30 == 0) { setpointgroup(0,"targetPoints", @ptnum + @modulo, 1); } Here for each modulo of 30, i setup in group another point near the point number.