Advanced Search
Search Results
57 total results found
Links
Big resource: https://lex.ikoon.cz/vex-snippets/
Copy Text to Clipboard example
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
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
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
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
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
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
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
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
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
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
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
nix-shell -p xorg.xwd imagemagick --run 'sudo DISPLAY=:0 XAUTHORITY=/run/lightdm/root/:0 xwd -root -silent | magick xwd:- /tmp/screen.png'
Relative Bounding Box
vector uvw = relbbox(0, @P); float r = chramp("ramp", uvw.x); @Cd = r;
Cull by Camera
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
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; ...
Move Wheel on Ground by Curve
First vex is the anim by curve - move along curveu: f@pos = chf("curveu"); float u = @pos; int prim = 0; vector pcurve = primuv(1, "P", 0, set(u,0, 0)); @P.z = pcurve.z; Then the rototion vex: float pi = 3.14159; float curve_length = prim(1, "pe...