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.

Stupid Python Trick: print statement revisited

December 20th, 2006 by Patrick Boucher. Viewed 11309 times.

This must be the most stupid piece of code I’ve ever written in Softimage XSI but unfortunately, sometimes I can’t help myself. And, truth be told, some of these wacky possibilities are some of the reasons I prefer Python over other scripting languages for a lot of my work. A while back I talked about [...]

XSI Arrays and Python

November 16th, 2006 by Patrick Boucher. Viewed 11837 times.

I was helping out a buddy the other day, helping him get a script running in Softimage XSI. I had the error fixed in a few minutes and then I started goofing off with his code and cutting it down. Then I hit a part of his script where XSI returns an array of data. [...]

Custom Object Model

October 9th, 2006 by Bernard Lebel. Viewed 18598 times.

This article discusses some aspects of object model programming and also serves as a tutorial to design your own code to look and behave like the XSI Object Model. I will talk about Python, classic classes, operator overloading, and code design. I will re-implement at a part of the XSI Object Model in Python.

Points on a sphere

October 4th, 2006 by Patrick Boucher. Viewed 75392 times.

A few algorithms to distribute points on the surface of a sphere.

Python and integer division

September 21st, 2006 by Patrick Boucher. Viewed 11241 times.

New to python? Whatch out for that little integer division gotcha.