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:
authorStephen Swaney <sswaney@centurytel.net>2005-04-17 18:37:40 +0400
committerStephen Swaney <sswaney@centurytel.net>2005-04-17 18:37:40 +0400
commitf919cf75f16d2da22cffb64e2b7b70e09d0e77ee (patch)
tree71d6871e73c88c7c64bd6269e122b91ed9f7757e /source/blender/python/api2_2x/doc/Curve.py
parent127abda43db712fecd6c23c9b79a0954782b7b82 (diff)
More Curve Module features: access to the attributes flagU and flagV
in a CurNurb object. Contributed by Gergely Erdelyi (dyce).
Diffstat (limited to 'source/blender/python/api2_2x/doc/Curve.py')
-rw-r--r--source/blender/python/api2_2x/doc/Curve.py36
1 files changed, 35 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/Curve.py b/source/blender/python/api2_2x/doc/Curve.py
index 5468966b1ba..265768893a8 100644
--- a/source/blender/python/api2_2x/doc/Curve.py
+++ b/source/blender/python/api2_2x/doc/Curve.py
@@ -377,6 +377,9 @@ class CurNurb:
The CurNurb supports the python iterator protocol which means you can use a python for statement to access the points in a curve.
The CurNurb also supports the sequence protocol which means you can access the control points of a CurNurb using the [] operator.
+
+ @cvar flagU: The CurNurb knot flag U (0: uniform, 1: endpoints, 2: bezier)
+ @cvar flagV: The CurNurb knot flag V (0: uniform, 1: endpoints, 2: bezier)
"""
@@ -419,5 +422,36 @@ class CurNurb:
@return: True or False
"""
-
+ def getFlagU():
+ """
+ Get the CurNurb knot flag U
+ @rtype: integer
+ @return: 0 - uniform, 1 - endpoints, 2 - bezier
+ """
+
+ def setFlagU( value ):
+ """
+ Set the CurNurb knot flag U (knots are recalculated automatically)
+ @type value: integer
+ @param value: CurNurb knot flag (0 - uniform, 1 - endpoints, 2 - bezier)
+ @rtype: PyNone
+ @return: PyNone
+ """
+
+ def getFlagV():
+ """
+ Get the CurNurb knot flag V
+ @rtype: integer
+ @return: 0 - uniform, 1 - endpoints, 2 - bezier
+ """
+
+ def setFlagV( value ):
+ """
+ Set the CurNurb knot flag V (knots are recalculated automatically)
+ @type value: integer
+ @param value: CurNurb knot flag (0 - uniform, 1 - endpoints, 2 - bezier)
+ @rtype: PyNone
+ @return: PyNone
+ """
+