Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

57 total results found

TOPs - symlink output file of parent

Houdini FX Python

  exportFile = str(work_item.expectedInputFiles[0]) dir = os.path.dirname(exportFile) newFile = os.path.join(dir, "cache.abc") os.symlink(exportFile, newFile)

Expressions

Houdini FX

Switch by Normal: if(point("../resample3", 0, "N", 2)<0, 0, 1) Menu expressions taken from Forum: So you could do { parma == "" parmb == "" } this would mean they both need to be true in order to work an (and) operation. Or if { parma == "" } { parmb ==...

Spiral

Houdini FX VEX

#include "math.h" #include "voplib.h" float easeOutCirc ( float t ) { return sqrt ( 1 - ( pow ( ( 1 - t ), 2 ) ) ); } float index = @ptnum; float numpts = @numpt; float startAngle = radians ( ch("angle") ); float dir = 2 * ch("dir") - 1; floa...

Links

Houdini FX VEX

Big resource: https://lex.ikoon.cz/vex-snippets/

Copy Text to Clipboard example

Houdini FX Python

This example I make a dictionary and copy to clipboard. I also gather a frame range from files on disk.  #needed: name, path, start, end import hou, os from pathlib import Path def getinfo(): pathname = hou.ui.selectFile(collapse_sequences=True) ...

Button Python Scripts

Houdini FX Python

Make Flipbook button. Must make an opengl in pipeline for the path details. Takes resolution from camera in ShotInfo node. import hou, re, os; stealfile =hou.ui.selectNode(title="Select OpenGl Export Node to steal path from", multiple_select=False, node_typ...

Tops Random

Houdini FX Python

Get the range from a range gen or extend -- works on items: pdgattrib("range", 0) #first frame pdgattrib("range", 1) #last frame #not sure this works

Comparing array

Houdini FX VEX

Find the difference between input 1's ids and input 0's: int delete_ids[] = array(); int numPrims = nprimitives(1); for (int i = 0; i < numPrims; i++) { int leaf_id = prim(1, "leafid", i); append(delete_ids, leaf_id); } int my_id = i@leafid;...

Tailscale

Linux & CLI Commands NixOS

services.tailscale = { enable = true; openFirewall = true; authKeyFile = path-to-key; extraUpFlags = [ "--login-server=https://your-instance" # if you use a non-default tailscale coordinator "--accept-dns=false" # if its' a s...

My Shelf Setup XML

Houdini FX

My shelf tools setup, in progress. Save to houdinixx.x/toolbar/daam.shelf <?xml version="1.0" encoding="UTF-8"?> <shelfDocument> <!-- This file contains definitions of shelves, toolbars, and tools. It should not be hand-edited when it is being used by t...

Looping

Houdini FX VEX

Loop moving points on curve using CurveU: int loop_frames = chi("loop_frame"); float fps = 29.97; float loop_time = loop_frames / fps; float t = @Time / loop_time; t -= floor(t); float ping = abs(2 * t - 1); float speed_mult = chf("speed_mult"); ...

TOPS mplay python

Houdini FX Python

import subprocess import os def onGenerate(work_item): # Get the parent graph parent = work_item.parentItemHolder # Collect output file paths from upstream items all_inputs = parent.inputItems file_paths = [] for item in a...

Transition Crowd Based On Clip Name

Houdini FX VEX

string clips[] = point(0, "clipnames", @ptnum); string target_clips[] = { "sit_idle_002", "n_sit_veryidle_002", "talking05", "talking04", "talking02", "n_sit_idle_phone_01" }; foreach (string clip; clips) { if (find(target_clips, clip) >= 0) { ...

For Website Looping Video

Linux & CLI Commands FFMPEG Commands

ffmpeg -ss 10 -i $INPUT -t 5 -'min(350,ih)':force_original_aspect_ratio=decrease,pad=550:350:(550-iw)/2:(350-ih)/2" -c:v libx264 -an -preset veryfast -crf 28 output.mp4    

Tidal-dl-ng Shell

Linux & CLI Commands NixOS

nix-shell tidal.nix (or whatever you call this file) { pkgs ? import <nixpkgs> {} }: let pythonEnv = pkgs.python3.withPackages (ps: with ps; [ pip ]); in pkgs.mkShell { name = "tidal-dl-ng-shell"; buildInputs = [ pythonEnv pk...

Take Screenshot of Remote Machine

Linux & CLI Commands NixOS

nix-shell -p xorg.xwd imagemagick --run 'sudo DISPLAY=:0 XAUTHORITY=/run/lightdm/root/:0 xwd -root -silent | magick xwd:- /tmp/screen.png'

Cull by Camera

Houdini FX VEX

string camera = chs("camera"); vector campos = toNDC(camera,@P); if (campos.x<(0-ch("x_pad"))|| campos.x>1+ch("x_pad") || campos.y<0-ch("y_pad") || campos.y>1+ch("y_pad") || campos.z>0){@group_blast = 1; f@blast=1;}

Pop Birth Attribute

Houdini FX

Here’s its existing code: #include <voptype.h> #include <voplib.h> int npts = ch("npts"); int seed = ch("seed"); float frame = ch("frame"); int firstpointcount = ch("firstpointcount"); int firstprimcount = ch("firstprimcount"); for(int i = 0; ...