Design a site like this with WordPress.com
Get started

[Code] Houdini Python snippets

Useful snippets stored for use later HDA callback button scripts Initialize Presets button Run all processes button HDA callback button scripts Initialize Presets button In callback function of button parameter, write: In the menu tab of parameter, create a key-value menu In Python module of hda: Run all processes button In “Cook” button parameter callbackContinue reading “[Code] Houdini Python snippets”

Houdini VEX commands

Useful VEX commands glossary: (to be continuously updated) concat(string 1, string 2,..): concatenate all strings findattribval(input, attribclass, attrib name, value)Ex:v@P = lerp(v@P, point(1, ‘P’, findattribval(1, ‘point’, ‘id’, i@id)), chf(‘blend’)); void getbbox(0, &min, &max)getbbox_center… getpointbbox: only computes bounding box of pointsgetpointbbox_center… idtopoint(input, id): find a point by its id attrib len: returns length of an arrayContinue reading “Houdini VEX commands”

Houdini Hscript commands

Some useful Hscript commands (test in Hscript textport): abs() atof(): converts a string to a float bbox() ceil() centroid() clamp(value, min, max) fit() floor() frac() -> only keep fraction of an integer if(condition, float if true, float if false)ifs(condition, string if true, string if false) max(a, b) -> often use to set the min thresholdmin(a,Continue reading “Houdini Hscript commands”

[Code] Houdini Python (6)

Learning Python, so here is jotted-down notes that might be useful, part 6. LOG 6 * 1 – os module os means operating systemEach system, like Linux or Window, uses different directory syntax, like backslash (“\”) and forward slash (“/”) Example:root = …….. (some location)txt_doc = …..(location) / filename.txt os.mkdir(‘{0}/{1}’.format(root, ‘something’)) => create directory namedContinue reading “[Code] Houdini Python (6)”

[Code] Houdini Python (4)

Learning Python, so here is jotted-down notes that might be useful, part 3. LOG 4 * 1 – Python sops technically running in detail* context, executing code only oncehou.pwd() == hou.node(‘ . ‘)hou.Node => class referred to all nodes in Houdinihou.Geometry => class referred to all sop 3d geometry in Houdini geo.points() => return allContinue reading “[Code] Houdini Python (4)”

[Code] Python and Houdini Python (3)

Learning Python, so here is jotted-down notes that might be useful, part 3. LOG 3 * 1 – hou.Node classhou.node().node() => call a node (inside a node)hou.selectedNodes() => return nodes that are being selected n = hou.node(‘….’)n.children() => return children nodes inside a noden.allSubChildren() => return all sub nodesn.parent()hou.node(‘…’).outputs() => return all outputs of aContinue reading “[Code] Python and Houdini Python (3)”

[Code] Python and Houdini Python (2)

Learning Python, so here is jotted-down notes that might be useful, part 2. LOG 2 * 1 – Strings \n => Enter new line of string; \t => Tab ” \ ” is also used as an escape for some special characters: ‘ can\’t ‘ => can’t r’…’ => turns string into a rawstring. r’some\tasdfj’,Continue reading “[Code] Python and Houdini Python (2)”

[VFX] BLOWNUP – SENIOR STUDIO II

Welcome to my Senior Studio II project at Savannah College of Art and Design. My project – BlownUp – is to make a realistic explosion(s) that can be composited into live-action footage or placed in a realtime environment. The blog is read from top to bottom. I hope you enjoy. LOG I Once again, warContinue reading “[VFX] BLOWNUP – SENIOR STUDIO II”

[Code] Python and Houdini Python (1)

Learning Python, so here is jotted-down notes that might be useful LOG 1 * 1 – What Python is and includes Python shell in Houdini Variable functions: set Class – Instances – OOP inside an object, a function is called a ‘method’ OOP is like group together functions that make sense to each object specificallyContinue reading “[Code] Python and Houdini Python (1)”