Category Archive for 'Python'

Python tips, techniques and code snippets.

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



Dynamic Callbacks In Plugins

June 11th, 2008 by Patrick Boucher. Viewed 576 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 the [...]

A Shortcut For Your Shortcuts

April 2nd, 2008 by Patrick Boucher. Viewed 1164 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 system [...]

Steven Caron, OBJ Files, Sexy Bits and Waste

March 1st, 2008 by Patrick Boucher. Viewed 1797 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 settings in a [...]

Scripting shaders

August 10th, 2007 by Bernard Lebel. Viewed 5714 times.

ABSTRACT
This article is sort of a tutorial-cookbook for scripting beginners. It discusses quick and simple techniques to script minor tasks related to shaders. We will try to focus more on Object Model techniques than Command Model ones. Please feel free to contribute to it if you know better!

Facial Animation, The Static KineState, and Dorritos?

May 23rd, 2007 by Steven Caron. Viewed 9880 times.

This is my first post at XSIBlog, so I want to thank Patrick and the other authors for keeping this going. I have always wanted to share but time is always against me not to mention having something worthy of sharing.
PLEASE NOTE: The following python scripts require this procedure to work properly.
Facial Animation
A thread started [...]