//Split @anotherAttribute based on ‘_’ string myString[] = split(s@anotherAttribute, “_”); //Use last element as attribute value s@tempString = myString[-1]; //convert string to integer i@myIntegerFromString = atoi(s@tempString);
scripts
VEX: Bend Wrangle
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;
Houdini Python: Find/Replace Parameter Expression
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 Tip: Toggle Update Mode
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 Tools Development: Version Up
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: “Unknown Nodes or Data”
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: Toggle Isolation
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: Multiple Outliners
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
Softimage: Renamer Tool
Here’s a renaming tool I created for use in Softimage. Downloaded here (run it from Edit > gbRenamer)
Nuke: BellTools
I’ve just uploaded a small collection of nuke scripts and gizmos that I find useful. I shall continue to update the .zip file as-and-when I have more tools. Find them here