deleteEmptyPartitions

July 12, 2013

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

fCurves: accessing interpolation

February 1, 2013

So I’ve recently been working on a tool that will allow simple and easy importing of cache data from Maya in to Softimage. Basically, baked animation from fbx files copy/pasted to models within my Softimage scene. Having completed a first draft of the tool it was then suggested that the imported animation curves be converted … Read More

Multi Paster

December 19, 2012

Oddly Nuke doesn’t allow you to copy a node and then paste it to multiple other nodes. This script does just that. #paste to multiple selection selected = nuke.selectedNodes() for eachNode in selected: n = nuke.toNode(str(eachNode.name())) n.knob("selected").setValue(True) nuke.nodePaste("%clipboard%")

mia2vray

December 19, 2012

In the advent of Vray coming to Softimage I’ve written a script that will break the back of converting mia shaders into VRayMtl shaders. It was inspired by this script written by Paul Dreisden  #mia2vray converter #author: gareth bell #date: 15-10-2012 #This script will break the back of converting mia shaders in selected materials into … Read More

Models to Nulls

December 19, 2012

This script just converts XSI models into nulls – essentially just matching the null to the model, parenting it’s children to the null and deleting it. It’s filed here import win32com xsi = Application objs = win32com.client.Dispatch( "XSI.Collection" ) objs.AddItems (xsi.Selection) for i in objs: if i.Type == "#model": newNull = xsi.GetPrim("null", str(i) + "_null", … Read More

Move Objects into Background Partitions

December 19, 2012

So this is a script I wrote in order to automate putting objects into passes’ background partitions for either the active pass or multiple selected passes.  It is filed here # Move selected objects to background partitions # created by Gareth Bell # original created in VBScript 28-11-11 # converted to Python 26-07-2012 # Description: … Read More

Scripts Updates

December 19, 2012

Bear with me, I’m slowly getting the hang of this PageLines / WordPress format jazz…… I’m currently trying to organise this site so it’s kinda useful but struggling to get the functional/aesthetics balance right. I think that maybe the blog is the best way to update tools and scripts so these things can then get … Read More