 # Librarian

Members

1,726

• #### Days Won

150

Librarian had the most liked content!

• Birthday 03/04/1976

• Website URL

## Personal Information

• Name
Tesan Srdjan
• Location
Göteborg/Sarajevo

## Librarian's Achievements

1. Combination of Vex .(tricks). Asia and Balkan. TraVex.hiplc
• 55 replies
• 1
• 2. You are Welcome @simonfarussell.. Now You can Start Some New Topic with Name lets See..." Tricks with Chops" and share some knowledge when you have Time. ...Here you have some codes from Asia . that i use more in combination with Chops and Points.. int idx = floor(7*rand(@ptnum)+1); // diff_colorTextureとopacity_colorTexture // @material_override s@material_override = "{'diff_colorTexture':\"\$HFS/houdini/pic/butterfly"+ itoa(idx)+".pic\",'opacity_colorTexture': \"\$HFS/houdini/pic/butterfly"+ itoa(idx)+".pic\",}"; //classicshader s@shop_materialpath = "/mat/classicshader1"; i@butterfly = @ptnum; 4@mat = maketransform(@N,@up,@P); and rotation v@P -= v@cen; int id = @ptnum % 6; float off = 2*PI*rand(i@butterfly); float freq = 10+5*rand(i@butterfly); if(id == 0 || id == 3){ float ang = 30*sin(freq*@Time+off); vector4 quat = quaternion(radians(ang),@N); @P = qrotate(quat,@P); }else if(id == 2 || id == 5){ float ang = -60*sin(freq*@Time+off); vector4 quat = quaternion(radians(ang),@N); @P = qrotate(quat,@P); } @P += v@cen;
• 55 replies
• 4
• 3. Vellum tricks Groups. Asia vellumTod.hiplc
4. @sachacarletti Interesting .HM , how to make groups of that secondar cluster and where to assign those groups inside sop solver or before on sop level?? totalititus Blockout if I have this code_ int pts [] = primpoints(0,@primnum); int n1 = point(0,'__cluster',pts); int n2 = point(0,'__cluster',pts); if(n1 != n2){ f@breaktreshhold = 10.2 ; } int pts [] = primpoints(0,@primnum); int c1 = point(0,'__piece',pts); int c2 = point(0,'__piece',pts); if(c1 != c2){ f@breaktreshhold = .04 ; } funny effects ..Thanx for a file Sacha VellGrOdforce.hiplc
5. @bastian Can you post please that mesh. here is Slide edge + some offset..maybe for someone useful. edgeslide.hiplc
6. @bastian Prim wrangle (tangent) int vtc[]; vtc = primvertices(0, @primnum); int n = len(vtc); int jm1, j, jp1; int pm1, p, pp1; vector A,B; for (int i = 0; i < n; i++) { jm1 = i - 1; j = i; jp1 = i + 1; if (chi('mode') == 0) { jm1 %= (n-1); jp1 %= (n-1); } else { jm1 = max(0, jm1); jp1 = min(n-1, jp1); } pm1 = vertexpoint(0, vtc[jm1]); p = vertexpoint(0, vtc[j]); pp1 = vertexpoint(0, vtc[jp1]); A = point(0, 'P', p) - point(0, 'P', pm1); B = point(0, 'P', pp1) - point(0, 'P', p); setpointattrib(0, 'tangentu', p, normalize(lerp(A, B, 0.5))); } Point wrang-set normal by tangent vector up = chv('up'); v@N = normalize(cross(v@tangentu, up)); if (chi('reverse')) { v@N *= -1; }
7. //save nodes import hou # set directory to save cpio dirPath = "DIRECTORY" def SaveTemplate(name): sel = hou.selectedNodes() path = sel.path() nodeCategoryName = sel.type().category().name() pathSplit = path.split("/") pathSplit.pop(-1) getRootPath = "/".join(pathSplit) rootName = getRootPath[1:].replace("/","_") contextnode = hou.node(getRootPath) filename = "{}/{}_{}".format(dirPath, nodeCategoryName, name + ".cpio") contextnode.saveItemsToFile(sel, filename, save_hda_fallbacks = False) hou.ui.displayMessage("Success!\n" + "Save File: "+filename) print("Save File: "+filename) Dialog = hou.ui.readInput(message ="Save Select Nodes?\n",title = "Save Template",severity=hou.severityType.Message,buttons=["Save","Cancel"]) //import nodes import hou import os # directory to open cpio dirPath = "DIRECTORY" files = os.listdir(dirPath) fileList = [f for f in files if os.path.isfile(os.path.join(dirPath, f))] def ImportTemplate(filename): desktop = hou.ui.curDesktop() pane = desktop.paneTabOfType(hou.paneTabType.NetworkEditor) current_context = pane.pwd().path() hou.clearAllSelected() contextnode = hou.node(current_context) nodes = contextnode.loadItemsFromFile(filename, ignore_load_warnings=False) sel = hou.selectedNodes() firstNodePos = sel.position() for node in sel: node.setPosition( node.position() + hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor).visibleBounds().center() - firstNodePos ) Dialog = hou.ui.selectFromList(fileList, message='Select Import File') if len(Dialog)!=0: for i in Dialog: ImportTemplate("{}/{}".format(dirPath, fileList[i])) For Speed.Save Nodes-Open Nodes , endless possibility for making a Diff Setups . Have Fun.
8. @eunchae You have wonderful ex in qLib https://github.com/qLab/qLib/blob/master/examples/workflow/polywirecurves_webs.hip
9. maybe this stuff can Help . SchrodingersSmokeCode.zip
×