modifying Halo Size in script

Hi all,

I’m having trouble changing the size of the halo on a material added to an object by my script.

my code is as follows:
mat = Material.New(“name”)
mat.setMode(“Halo”)
mat.setAdd(0.8)
mat.HaSize = 4

whenever I run the script I get an error stating that: ‘Blender Material’ object has no attribute ‘HaSize’. However, this is the only command I can find to modify the halo size, what else will do this for me?

Material functions:

float getHaloSize() Get the halo size.
setHaloSize(halosize) Set the halo size.

http://www.blender.org/documentation/249PythonDoc/

Where did you get mat.HaSize?