added python test files

these tests should be exhaustive
This commit is contained in:
2003-06-21 16:07:55 +00:00
parent 81dae537b1
commit 89e847f51a
5 changed files with 167 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import Blender
list = Blender.World.Get()
print "available worlds",list
w = Blender.World.Get("World")
for param in ["Name","Colormodel","Fastcol","Skytype","Mode","Totex","Texact","Mistype","Hor","Zen","Amb","Star","Dof","Mist"]:
val = eval("w.get%s()"%param)
print param,val
val1 = eval("w.set%s(val)"%param)
print val1
for param in ["name","colormodel","fastcol","skytype","mode","totex","texact","mistype","hor","zen","amb","star","dof","mist"]:
exec("val = w.%s"%param)
print param,val
exec ("w.%s = val"%param)