Blender.Material.Get() Crashes every time

when i use Blender210 i get attribute error
and when i use Blender.Material.Get() Crashes every time
my python path is set, what else can I do?

system
windows 2000 pro
Python20
Blender 2.23

Thanks
BaDbOyHeRe

The python in Blender 223 was’t that stable. You might try using an older verson or get 225 from www.blender.org. asdf_46

There is no reason for it to crash, unless you try to print the result. This will also happen for other things like meshes/objects/matrices.So don’t do something like:


print Blender.Material.Get()

but depending on on what it is you are interested in:


for material in Blender.Material.Get():
    print material.name

Material.Get() returns a list of all materials used in the scene. To see a list of other properties, do something like this:


material = Blender.Material.Get(name)
print dir(material)

I was indeed trying to print Blender.Material.Get().
thanks again to both of you

BaDbOyHeRe :stuck_out_tongue: