Category Archive for 'Python'

Python tips, techniques and code snippets.

You would like to submit an article to Softimage Blog, whatever the category? Don't hesitate, it might even get you full authorship status to XSIBlog if you do so.

Scene Based Event Plugins

March 18th, 2011 by Patrick Boucher. Viewed 9984 times.

Those of you who are long time readers of Softimage Blog (or XSIBlog way back when) might remember a 2006 article by Homam Bahnassi. In the article Homam describes a method to run code stored in annotations in the scene at arbitrary moments by selecting an object and manually invoking code execution. Recently we had [...]

A SetValue decorator

January 19th, 2011 by Patrick Boucher. Viewed 13874 times.

In a recent post on the Softimage mailing list people were wondering how to temporarily change user preferences. There are many cases where that might be fun to do, think command logging, undo stack or PPG pop ups. So here is a quick revisit of my past post on decorators but this one is very [...]

Dynamic Callbacks In Plugins

June 11th, 2008 by Patrick Boucher. Viewed 11540 times.

I really like applications that provide rich SDKs for it’s users to play around with. I also like event based systems and callbacks. These are all things that make me absolutely love writing up plugins inside XSI. But there is one small problem, I find, with XSI’s callbacks. Callbacks in XSI plugins are functions in [...]

A Shortcut For Your Shortcuts

April 2nd, 2008 by Patrick Boucher. Viewed 7477 times.

When working with XSI in a facility I often use Python modules to better package my code and allow easy reuse of key parts in the different tools that are developed. These modules I usually keep in a location on the main drive of the workstations, for example: C:\<facilityName>\libs\python. I’ll also put in place a [...]

Steven Caron, OBJ Files, Sexy Bits and Waste

March 1st, 2008 by Patrick Boucher. Viewed 25468 times.

What do all these things have in common? The weird wirings in my brain. That’s what. Back to the beginning At the end of last October Steven Caron sent me a plugin he wrote that allows an XSI user to drag and drop .obj files into the interface and have them import automatically according to [...]