Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Guignot <guignot@wanadoo.fr>2003-06-21 20:07:55 +0400
committerJacques Guignot <guignot@wanadoo.fr>2003-06-21 20:07:55 +0400
commit89e847f51aaf9561228cdc42d89847f0839617b3 (patch)
treec17887833c6a23aa2f76346518c0c5f3d19b1376 /source/blender/python/api2_2x/doc/testworld.py
parent81dae537b1318b0c371eb0117ec5e04634fad269 (diff)
added python test files
these tests should be exhaustive
Diffstat (limited to 'source/blender/python/api2_2x/doc/testworld.py')
-rw-r--r--source/blender/python/api2_2x/doc/testworld.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/testworld.py b/source/blender/python/api2_2x/doc/testworld.py
new file mode 100644
index 00000000000..02d43a0784a
--- /dev/null
+++ b/source/blender/python/api2_2x/doc/testworld.py
@@ -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)
+
+
+