Advanced Search
Search Results
49 total results found
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
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...
Gradients Ramps Etc
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...