python

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, 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, 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

python, scripts, softimage

deleteEmptyPartitions


No Comments

I like to keep my passes tidy so this little script just strips out any empty partitions on selected passes. # USE: Select passes and run the script import win32com xsi = Application selectedPasses = win32com.client.Dispatch( "XSI.Collection" ) selectedPasses.AddItems (xsi.Selection) #————————————————————– #————————————————————– #————————————————————– def stripPass(eachPass): partitionsColl = win32com.client.Dispatch( "XSI.Collection" ) for eachPartition in eachPass.Partitions: partitionsColl.AddItems

Read More

python, scripts, softimage

extrudeMultiCurves


No Comments

It came to my attention from a colleague today that there isn’t an easy way to extrude along multiple curves in Softimage. So I knocked up this little script for her. #extrudeMultiCurves_001 #To Use: # 1) Select the curves you want to extrude along. # 2) Run script # 3) Pick the profile curve import

Read More