scripts

houdini, python, scripts

Python: Split Into Groups


No Comments

This little script for Houdini is one I’ve had knocking about and thought might be useful to throw out onto t’interweb. Select the node at which you want to split out the groups and it will create a bunch of blasts and OUT nodes to separate out per group. import hou selectedNodes = hou.selectedNodes() for

Read More

houdini, scripts, Uncategorized, vex

VEX: Bend Wrangle


No Comments

Taken from https://tosinakinwoye.com/2017/01/23/houdini-vex-snippets/ //Input is a line //Resample SOP on line for more points //Activate curveu attrib in resample SOP //Remap curveu to shape of bend @curveu=chramp(“ramp”,@curveu); float bamt = chf(“bend_amt”); //bend amount vector benddir = chv(“bend_dir”); //bend direction @P+= benddir * bamt * @curveu;

Read More

houdini, python, scripts

Houdini Python: Find/Replace Parameter Expression


No Comments

A little script to find/replace strings in selected nodes’, parameter expressions: import hou sel = hou.selectedNodes() dialog = hou.ui.readMultiInput(‘Find/Replace In Expression’, input_labels=[‘Find: ‘, ‘Replace: ‘,], buttons=("Find/Replace", "Cancel"), severity=hou.severityType.ImportantMessage, title=’Find/Replace’, close_choice=1) find = dialog[1][0] replace = dialog[1][1] if dialog[0] == 0: for n in sel: for parms in n.parms(): try: newString = str(parms.eval()).replace(find, replace) parms.set(newString) except:

Read More

houdini, scripts, vex

VEX: SOP Rotation


No Comments

f@speed = fit01(rand(@ptnum), ch(‘minSpeed’), ch(‘maxSpeed’)); float angle = (ch(‘angle’)+@ptnum)*@speed; vector axis = sample_direction_uniform(rand(@ptnum*ch(‘seed’))); @orient = quaternion(angle, axis);

Read More

houdini, python, scripts

Houdini Tip: Toggle Update Mode


No Comments

I often find that Houdini wants to cook at inconvenient times. To stop this you can enter Manual Mode which is located in the bottom right of the UI. To make toggling between Manual and Auto mode easier and quick it can be scripted and dedicated a hotkey. Googling brought up this feed http://www.vfxoverflow.com/questions/toggle-update-mode-in-houdini which

Read More

houdini, plugin, python, scripts

Houdini Tools Development: Version Up


No Comments

Having begun the switch to Houdini, I’ve been learning how to implement my Python knowledge into Houdini. My first tool is an incremental saver (something I find hugely important), which accounts for files that already exist and warns if a naming convention is not adhered to. This .zip contains the .py script, the code for

Read More

maya, python, scripts, Uncategorized

Maya: “Unknown Nodes or Data”


No Comments

I’ve just had the misfortune of trying to export a very basic model with Arnold Shaders from Maya as a .ma file. Upon trying this I get the fateful error. A solution I’ve very quickly found is this python script from Fred Lewis (http://www.movingmedia.com/python-scripts-maya/) # Unlock unknown types and delete them import maya.cmds as mc

Read More

maya, scripts

Maya: Toggle Isolation


No Comments

In Softimage I use this a lot! Hotkeyed to my NmPad3 key, I have the Isolate Selection tool. Which is great for temporarily hiding all the other stuff in your scene whilst you focus one one thing specifically. In Maya – I’ve learned, there are some scripts available out there. In a quick attempt to

Read More

maya, scripts

Maya: Multiple Outliners


No Comments

One thing I rely on heavily when using Sofitmage is the ability to use multiple explorers to navigate the scene. Inherently in Maya this functionality does not exist. However, as many of us are rapidly learning – it can be scripted. This tiny snippet will do the trick. I’ve added this to the hotkey 8

Read More