Jump to content


Popular Content

Showing most liked content on 12/25/2018 in Posts

  1. 2 points
    You need to give the pop replicate the same stream name as your poplocation, here is a fix. cell_division._FIXhiplc.hiplc
  2. 1 point
    Numpy also seems to be suitable for comparing arrays, e.g. setdiff1d() for extracting "left-overs". import numpy node = hou.pwd() geo = node.geometry() arr1 = geo.intListAttribValue('arr1') arr2 = geo.intListAttribValue('arr2') AB = numpy.setdiff1d(arr1, arr2) BA = numpy.setdiff1d(arr2, arr1) geo.addAttrib(hou.attribType.Global, 'arr_AB', AB, create_local_variable=False) geo.addAttrib(hou.attribType.Global, 'arr_BA', BA, create_local_variable=False) I just dont know how to create proper array attributes with Python. Currently it returns just a bunch of integer attributes
  3. 1 point
    I don't think so, but it's relatively straight forward exploiting the sort functions i[]@arr1 = {0, 30, 1, 47, 48}; i[]@arr2 = {0, 41, 48, 1341, 1}; function int[] sorted(int arr1[]; int arr2[]) { int _arr1[] = sort(arr1); int _arr2[] = sort(arr2); int result[]; foreach(int i; _arr1) { foreach(int j; _arr2) { if (i == j) push(result, i); } } return result; } i[]@arr_sorted = sorted(i[]@arr1, i[]@arr2);
  4. 1 point
    you could do a simple particle simulation and then rasterize them to get the volume. then control density based on age of your points.
  5. 1 point
    Hey Atom, Another way you could write it in vex which is similar to what you had is the point sop is: float freq, amp; vector pos = @P; freq = chf("freq"); amp = chf("amp"); pos.x += sin(pos.y * freq) * amp; pos.z += cos(pos.y * freq) * amp; @P = pos;