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:
authorCampbell Barton <ideasman42@gmail.com>2007-01-04 13:18:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-01-04 13:18:37 +0300
commit50edac630bdfeab8a84dd0db67f3c61d01008723 (patch)
treead4c293b5df33683f67b84b54e205df0586f7422 /source/blender/python/api2_2x/doc/Curve.py
parenteb1ca77fc430d5beeb9f12f99688651ada016e85 (diff)
removed blender2cal3d.py, this is the second time where nobody has been able to maintain this script to fix minor bugs, aparently the cal3d/soya guys maintain their own scripts anyhow.
Adding switchDirection() for curNurbs. simple function and double checked to make sure its ok.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Curve.py')
-rw-r--r--source/blender/python/api2_2x/doc/Curve.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/Curve.py b/source/blender/python/api2_2x/doc/Curve.py
index f65ce0ad00f..d1756f53336 100644
--- a/source/blender/python/api2_2x/doc/Curve.py
+++ b/source/blender/python/api2_2x/doc/Curve.py
@@ -467,6 +467,21 @@ class Curve:
@raise AttributeError: throws exception if curve_num is out of range.
"""
+ def switchDirection( ):
+ """
+ Reverse the direction of a curve.
+ @return: None
+
+
+ I{B{Example:}}
+ # This example switches the direction of all curves on the active object.
+ from Blender import *
+ scn = Scene.GetCurrent()
+ ob = scn.objects.active # must be a curve
+ data = ob.data
+ for cu in data: cu.switchDirection()
+ """
+
def getNumCurves():
"""
Get the number of curves in this Curve Data object.