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

51 total results found

Houdini

Python

All the python stuff thats standalone.

Nuke

Houdini FX

Linux & CLI Commands

Nuke Commands, Python, TCL

FFMPEG Commands

Linux & CLI Commands

Python

Houdini FX

VEX

Houdini FX

Images and PDFs

Linux & CLI Commands

DistroBox

Linux & CLI Commands

OnCreated scripts

Houdini FX Python

OnCreated Script to set name, color, shape of node: cachename = hou.ui.readInput("Enter cache name")node = kwargs["node"]node.setName(cachename[1])node.setUserData('nodeshape', "tilted")node.setColor(hou.Color(1,0,0))

PythonModule Scripts

Houdini FX Python

Get houdini version: hver = hou.applicationVersionString().rpartition('.')[0]

Raw to JPG

Linux & CLI Commands Images and PDFs

ufraw-batch --out-type jpeg *

Top Node AutoWrite

Nuke Commands, Python, TCL

if you need your output file named exactly like your input file then use a little TCL expression in the file knob of the write node suggestion your filename convention is like: //path/to/file/filename.pattern.ext then: [lindex [split [lindex [split [knob [t...

POPs

Houdini FX

Random Spin: // The following makes it random: axis = rand(@id) - set(0.5, 0.5, 0.5); spinspeed *= rand(@id+0.1);

TCL Commands

Nuke Commands, Python, TCL

GETTING A KNOB’S VALUE OF A SPECIFIC NODE: #First frame of current read/write: [value Read1.first] #Getting a knob’s value of current node: [value this.first_frame] #Return label value of the input node: [value this.size] #Name of the input node...

Move Files

Houdini FX Python

import os,hou, shutil selected = hou.selectedNodes() for x in selected: if x.parm("env_map"): file = x.parm("env_map").eval() parm1 = x.parm("env_map") elif x.parm("fileName"): file = x.parm("fileName").eval() pa...

Retime track in nuke

Nuke Commands, Python, TCL

Retiming a curve There are many retiming options in Nuke but how do you retime tracking data or animation?The answer is actually very simple and can be used wherever you have an animation curve in your script. If you are using an OFlow node, called ‘OFlow1’, ...

Cropping

Linux & CLI Commands FFMPEG Commands

Center Crop for Instagram: ffmpeg -i ParticleSensor.mp4 -vf "scale=(iw*sar)*max(1080/(iw*sar)\,1080/ih):ih*max(1080/(iw*sar)\,1080/ih), crop=1080:1080" ParticleSensor_ig.mp4    

Convert PNG to Icon

Linux & CLI Commands Images and PDFs

first convert to 256 convert input.png -resize 256x256 output.png last convert to icns png2icns output.icns input.png

Python - import all image sequences under folder

Nuke Commands, Python, TCL

"""Finds and creates nodes for file sequences in an entire directory tree""" # This has the user select a folder, then creates Read nodes # for all files and sequences under that folder # lewis@lewissaunders.com 03/2011 import os, nuke, re, time from...

Random Python

Nuke Commands, Python, TCL

Get the file path from selected nodes: sel=nuke.selectedNodes() for x in sel: print(x.knob("file").getValue())

Update frame range from file

Houdini FX Python

def grabFrames(self): import os plate = self.parm("backplate").eval() if not plate: framex = self.parm("frange1").eval() framey = self.parm("frange2").eval() else: flist = [x.split(".")[-2] for x in os.listdir(os....

split by group

Houdini FX Python

import hou selected = hou.selectedNodes()[0] groups = [g.name() for g in selected.geometry().primGroups()] for i, name in enumerate(groups, 1): #make a split node split = selected.createOutputNode("blast") split.setName(name) ...

Camera Stuff

Houdini FX VEX

auto focus, get distance from object and camera: vlength(vtorigin(“/obj/geo1”, “/obj/cam1”))

Points

Houdini FX VEX

divide points into 3 equal parts: i@part = floor(fit(rand(@ptnum+.258), 0, 1, 0, 2.9));   point normal to center:  

Bake Camera from Alembic

Houdini FX Python

import hou obj = hou.node("/obj") ocam = hou.node(hou.ui.selectNode(node_type_filter=hou.nodeTypeFilter.ObjCamera)) reslist = ["1920x1080", "3840x2160", "3072x2109", "2224x1548", "Keep Original", "Custom"] sl = hou.ui.selectFromList(reslist, message=...

If then statements

Houdini FX VEX

If the pscale is greater than .4 then set it to .2, if not set it to its current pscale @pscale = @pscale>.4?.2:@pscale    

Web Convert

Linux & CLI Commands FFMPEG Commands

OGV: in_old = "path_to_vid.mp4" new = ${in_old%.*}.ogv ffmpeg -i $in_old -codec:v libtheora -qscale:v 6 -codec:a libvorbis -qscale:a 6 $new

Convert entire folder

Linux & CLI Commands FFMPEG Commands

for i in *.mov; do name=`echo "$i" | cut -d'.' -f1` echo "$name" ffmpeg -i "$i" "${name}.mp4" done