Jump to content

animatrix

Members
  • Content count

    267
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won

    18

animatrix last won the day on July 13

animatrix had the most liked content!

Community Reputation

222 Excellent

About animatrix

  • Rank
    Illusionist

Contact Methods

  • Website URL
    https://www.pragmatic-vfx.com

Personal Information

  • Name
    Yunus

Recent Profile Visitors

3,973 profile views
  1. random sineblip wave help

    There are many ways, but the easiest is to sample the resulting curve using a float parameter like this: primuv("../attribwrangle1/", 0, "P", 1, ch("pos"), 0) This would be the expression you use in your parameter. Then you can control where to sample using another float parameter (normalized) called pos for example. This could be the current time also if you want, or you can animate the curve while sampling the same location on the curve.
  2. random sineblip wave help

    Hi, You can write something like this: float radius = ch("radius"); float amp = ch("amplitude"); float seed = ch("seed"); int count = chi("count"); for ( int i = 0; i < count; ++i ) { float r = rand ( i + 34.13 + seed ); vector p = primuv ( 0, "P", 0, r ); float d = distance ( p, @P ); float d2 = fit ( d, 0, radius, 0, PI ); float y = amp + sin ( d2 + 0.5 * PI ) * amp; if ( d < radius ) @P.y += y; }
  3. Interrupt SOP Cooking with time limit (Python)

    Hi, Since PolyExpand2d is compileable, you can implement it as a Python wrapper using node verbs with your time out/retry logic: https://www.sidefx.com/docs/houdini/model/verbs.html
  4. Hi, You can use pwd and path functions: paneTabObj = hou.ui.paneTabUnderCursor() print paneTabObj.pwd().path()
  5. Pragmatic VEX: Volume 1 [4K] [H18.5]

    Pragmatic VEX is listed as part of the official VEX learning path! Thanks SideFX! https://www.sidefx.com/learn/vex
  6. Hi, You can capture point neighbours and weights inside a For Loop network using Point Deform (Capture), and then use another Point Deform SOP to deform afterwards. So the capturing is done without time dependency which takes longer to cook while the deformation happens after, which will run much faster.
  7. Paste node downstream

    Hi, You can script something like this but you have to make sure you cover all cases properly if you want it to work well. For example what if you copy nodes that have multiple parent nodes as a whole, etc? You can handle Ctrl+V action using this API: https://www.sidefx.com/docs/houdini/hom/network.html Then you could do things like if there is no selection, behave as is, otherwise use your custom logic, etc. I use the same API to create a context sensitive rule based hotkey system bound to the network editor. I talk about it in detail here if you are interested:
  8. Houdini 19 Wishlist

    It's something like this: class SimpleWidget(QtWidgets.QWidget): def __init__(self, parent, x, y, w, h): QtWidgets.QWidget.__init__(self, parent, QtGui.Qt.WindowStaysOnTopHint) self.initialize(x, y, w, h) def initialize(self, x, y, w, h): self.setGeometry(x, y, w, h) self.setMask(QtGui.QRegion(0, 0, w, h)) p = self.palette() p.setColor(QtGui.QPalette.Window, QtGui.Qt.red) self.setPalette(p) def drawViewportOutline(thickness): if hasattr(hou.session, "viewportOutlineWindows"): for w in hou.session.viewportOutlineWindows: w.close() hou.session.viewportOutlineWindows = [] p = hou.session.overlayviewpos s = hou.session.overlayviewsize w = s.width() - thickness h = s.height() - thickness outlineWindows = [] w1 = SimpleWidget(hou.ui.mainQtWindow(), p.x(), p.y(), thickness, h) w1.setParent(hou.qt.floatingPanelWindow(None), QtGui.Qt.Window) outlineWindows.append(w1) w1.show() w2 = SimpleWidget(hou.ui.mainQtWindow(), p.x(), p.y(), w, thickness) w2.setParent(hou.qt.floatingPanelWindow(None), QtGui.Qt.Window) outlineWindows.append(w2) w2.show() w3 = SimpleWidget(hou.ui.mainQtWindow(), p.x() + w, p.y(), thickness, h) w3.setParent(hou.qt.floatingPanelWindow(None), QtGui.Qt.Window) outlineWindows.append(w3) w3.show() w4 = SimpleWidget(hou.ui.mainQtWindow(), p.x(), p.y() + h, w, thickness) w4.setParent(hou.qt.floatingPanelWindow(None), QtGui.Qt.Window) outlineWindows.append(w4) w4.show() hou.session.viewportOutlineWindows = outlineWindows def drawViewportOutline(): # Draw red outline if viewport is camera-locked sceneviewer = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer) currentViewport = sceneviewer.curViewport() if hasattr(hou.session, "viewportOutlineWindows"): if currentViewport.isCameraLockedToView() and currentViewport.camera(): if len(hou.session.viewportOutlineWindows) == 0: drawViewportOutline(2) else: if len(hou.session.viewportOutlineWindows) > 0: for w in hou.session.viewportOutlineWindows: w.close() hou.session.viewportOutlineWindows = [] hou.ui.addEventLoopCallback(drawViewportOutline) The callback function is described here: https://www.sidefx.com/docs/houdini/hom/hou/ui.html Register a Python callback to be called whenever Houdini’s event loop is idle. This callback is called approximately every 50ms, unless Houdini is busy processing events. Basically you can do anything in this function and that means if you can query if the viewport is set to a camera and it's locked then you can toggle the viewport outline.
  9. Pragmatic VEX: Volume 1 [4K] [H18.5]

    Some feedback from Alexander Vasilyev (Technical Artist @ Ubisoft) on Artstation https://www.artstation.com/alexandervasilyev/blog/erN7/gradient-descent-ascent-and-contour
  10. Curl Noise Control

    Hi, I didn't check his method but maybe he is using contour lines? You can do this sort of effect very easily with this approach and can make it even more complex if you incorporate noise patterns, etc. Once you have these curves you can copy points or objects if you want, etc or just render them as curves like below:
  11. attribtype() - Distinguish Float from Vector

    Hi, To filter it further you have to use attribsize(): https://www.sidefx.com/docs/houdini/vex/functions/attribsize.html Returns The size of an attribute’s type. For a vector type, this is the number of components. For an integer, float, or string, this returns 1. For an array attribute, this returns the size of the tuples in the array. The tuple size is controlled by the Size parameter on the Attribute Create node. The best way to copy attributes is by using the Attribute Copy SOP, it's much faster also.
  12. Houdini 19 Wishlist

    Hi, It's not actually modifying the Houdini interface, it's a hack I just create 4 lines in Qt that outline the Houdini viewport. Qt support in Houdini is pretty limited so you can't just do things like this: viewport.qtWidget().bounds() You need to go through all available widgets in the entire app and filter by type, etc like this: https://www.sidefx.com/forum/topic/70782/?page=1#post-301055 I didn't post it publicly only on Patreon and the previous Houdini beta. I can post this part here but it might require some tweaks because it involves using a scene callback to check if the camera is locked, etc.
  13. Hi, nearpoints is a wrapper function which is calling pcfind so it's the simplest way AFAIK.
  14. One-liner for point(0,"P",8).z in point wrangle

    Hi, You can do it like this: @P.z = point(0,"P",8).z;
  15. Ray marching in COPs

    Very cool Konstantin!
×