 # holycause

Members

54

8 Neutral

• Rank
Peon

## Personal Information

• Name
Ruben
• Location
Wellington
1. ## Create geometry with AttribWrangle

you could do something like this float x = 3.; vector pos = {0, 0, 0}; int numPoints = 3; for(int i=0; i<numPoints; i++){ addpoint(0, pos); pos.x += x; pos.y += x; pos.z += x; } but if you don't want to generate your points in a loop you could do something like this float x = 3.; int pt0 = addpoint(0, {0,0,0}); vector pos = point(0, "P", pt0); pos.x += x; pos.y += x; pos.z += x; int pt1 = addpoint(0, pos);
2. did you uncheck the "cache simulation" toggle on your dop network? Having it off helps a lot during sims.
3. ## losing decimal precision in string to float conversion

edit, nevermind, looked at the wrong node the debug node is returning the right data
4. Looking at the documentation, there is an hou.undos module https://www.sidefx.com/docs/houdini/hom/hou/undos
5. int match = findattribval(1, "point", "id", @id); if(match!=-1) @P = point(1, "P", match); use the findattribval function it does exactly that it returns the first point number with the corresponding value and -1 if it doesn't find it
6. you should contact SESI.
7. ## vex Creating VEX libraries

the "houdini/vex" folder holds the "VEXdso" file used for your dso vex functions
8. ## Make Python Run Every Frame For MDD Export?

you can set it as a pre-frame script
9. ## About VEX_example.C -> Make build-in VEX function?

I wouldn't save it in the install folder but in your user directory. ..\Documents\houdini15.5\dso\vex
10. ## About VEX_example.C -> Make build-in VEX function?

why don't you change your output file in VS?
11. ## [SOLVED] VEX - addpoint randomly on geo

set your wrangle in detail mode and connect your geo to the second input int prims = nprimitives(1); int count = chi("count"); float seed = clamp(chf("seed"),1E-3, 1E8); for(int i=0; i<count; i++){ float rr = random(prims*i*seed); int prnum = int(rr*prims); float u,v; u = rand(i*seed); v = rand(i*rr*seed); vector pos = primuv(1, "P", prnum, set(u,v,0)); addpoint(0, pos); } just noticed that I wasn't using the correct variable to initialize my for loop It s fixed now ^^
12. ## finding a dopnetwork with expressions / scriptig

just look for the node type something like that dopnets = [i for i in hou.node("/obj/obj1/").children() if "dopnet" == i.type().name()]
13. ## About VEX_example.C -> Make build-in VEX function?

did you create and setup your VEXdso file as well? http://archive.sidefx.com/docs/hdk15.5/_h_d_k__vex_op.html#HDK_VexOp_Installing
14. another way to copy attributes from another input is to use the "findattribval" function it returns the point number of the given input if it founds it or -1 if it doesn't find. int match = findattribval(1, "point", "name", s@name); if(match!=-1) @P = point(1, "P", match);
15. thanks, Unfortunately, I won't be able to use structs. nevermind, thanks anyway
×
• Donations