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.



Custom Object Model

October 9th, 2006 by Bernard Lebel. Viewed 7302 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 6995 times.

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

Python and integer division

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

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

Python, the text editor, and encoding

August 26th, 2006 by Bernard Lebel. Viewed 6126 times.

Recently I ran into a severe problem. Whenever I would try to import modules in the Python command line shell, I”d get syntax error pointing to the first line. In fact, trying to import the module in XSI from a custom command gave a syntax error at line… zero! What the?

Easily creating Guids in Softimage XSI

July 1st, 2006 by Patrick Boucher. Viewed 4523 times.

As far as I”m concerned, once of the last few really ugly pimples on the face of Softimage XSI is the GUID. A key component of SPDL files in XSI, the Globally Unique Identifier helps identify shaders and their parameters. Here is how you can create GUID from within XSI.