Jump to content


  • Content count

  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won


pelos last won the day on September 8 2014

pelos had the most liked content!

Community Reputation

6 Neutral

1 Follower

About pelos

  • Rank

Personal Information

  • Name
  • Location
  1. I will try the use current frame, lag chop and jiggle I clicked timeslice checkbox, thanks =)
  2. I am working grooming some curves/hairs and all the way below the chain is a chop node with noise inside a subnet, even do I bypass the subnet, every time I change something takes forever since the chops cook even do that I think they are off/bypass, all the frames =( is there a way to really by pass chops or just let them cook by frame so the scene??? is kinda annoying =(
  3. make a parm use python instead hscript

    if I do something like exp = """ node = hou.pwd() geo = node.geometry() prim0 = geo.prim(0) return len(prim0.points()) """ attribvop_node.parm("num_points_per_line").setExpression(exp, hou.exprLanguage.Python) now it works =) in the UI shows purple, and not green I think is because just that parm is python and the rest are hscript. thanks =)!!!! (go to sleep is 1 am)
  4. I have a parameter in my node that I want to convert to use python, usually we can right click> expression >change language to python but for some reason is gray out =( and reading documentation I could do parm.setExpression("2+2". language=Something) but I thought using hou.lenguage.Python as argument but wants a value? do we have something like parm.setScriptLenguage? or an easy way to switch all the node to use python, or just that parameter?
  5. since I needed in a parameter I did python node = hou.pwd() geo = node.geometry() prim0 = geo.prim(0) return len(prim0.points())
  6. interesting I am running it on a series of curves/hairs and I just get 1 as result, my hairs have 10 points each, vertex are been consider different as points in this case?
  7. I can use npoints("../sop") but that count ALL the points, is there a way to just count the points on the first primitive?
  8. interesting how the groups as are also consider an attribute, was expecting an especial function for getting all the groups that a points is in.
  9. mmm sometimes i think the vex datatypes are very limited, i was expecting to get a list of classes such [ pointclass1, pointclass2, ] that later on with .notation i could get properties like the size, type, name etc.. (something i like a to work with python more than vex) thanks for sharing the snippet, i appreciate it =)
  10. i am creating a point in between 2 points and i want to transfer all the attributes to this new point, is there a way to find all the attributes that are in a point? like a list/array ["Cd", "P", "N"...] thanks =)
  11. how to add a point between 2 points in vex

    aja, need to move the first point from the origin =) vector one = point(0, "P", 0); vector two = point(1, "P", 0); vector newpoint = (two-one)*ch("perc"); addpoint(geoself(), newpoint+one);
  12. how to add a point between 2 points in vex

    this is strange I am know the math should be right, but it seems vex evaluation from 0,0,0? why is that? I even put a slider so I can see the point moving from point A to point B but it does it from 0,0,0? is that suppose to be like that? between_points.hip
  13. Python's multiprocessing

    what about using popen? you could have 2 scripts one that runs in Houdini and calls the second one, that way you can tell to open any program on the back, in this case python running what you need and returning it to the first script. (pseudocode) in the main script: results = [] for I in list: bla = popopen("python /path/to/second/script", stdout=pipeline, stderr=pipeline) std, sterr = bla.communicate() results.append(std) print results this will open pythons on the back and return what was printed, you could also do the second scripts to export the information to txt files and then have a way to read back form that txt
  14. array attribute not showing in python node

    aja! magic! thanks Bandu
  15. Creating an array attribute (just putting nearpoints from vex into an attribute) [0,1,2,3,4,5......] but I want to be able to retrieve that, so in python using when I use geo.points[0].attribValue("near_points") just return 0, I was expecting the actual array that I can see on geometry spreadsheet, is there a different function to get the array? or there is some secret magic somewhere? here is the hip file, thanks guys =) near_points_add_upload.hip