diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2003-06-21 20:07:55 +0400 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2003-06-21 20:07:55 +0400 |
commit | 89e847f51aaf9561228cdc42d89847f0839617b3 (patch) | |
tree | c17887833c6a23aa2f76346518c0c5f3d19b1376 /source/blender/python/api2_2x/doc/testcurve.py | |
parent | 81dae537b1318b0c371eb0117ec5e04634fad269 (diff) |
added python test files
these tests should be exhaustive
Diffstat (limited to 'source/blender/python/api2_2x/doc/testcurve.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/testcurve.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/testcurve.py b/source/blender/python/api2_2x/doc/testcurve.py new file mode 100644 index 00000000000..1db037bc385 --- /dev/null +++ b/source/blender/python/api2_2x/doc/testcurve.py @@ -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)
\ No newline at end of file |