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,20 @@
import Blender
list = Blender.Curve.Get()
print list
cur = Blender.Curve.Get('Curve')
for prop in ["Name","PathLen","Totcol","Flag","Bevresol","Resolu","Resolv","Width","Ext1","Ext2","Loc","Rot","Size"]:
value = eval("cur.get%s()"%prop)
print prop,"-->",value
exec("cur.set%s(value)"%prop)
for attr in [ "name","pathlen","totcol","flag","bevresol","resolu","resolv","width","ext1","ext2","loc","rot","size"]:
value = eval("cur.%s"%attr)
exec("cur.%s = value"%attr)