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
path: root/source
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2004-04-06 05:01:34 +0400
committerJoseph Gilbert <ascotan@gmail.com>2004-04-06 05:01:34 +0400
commit3c28f2f917bd9c565986f622d7ba2d151d3b14c8 (patch)
tree7348ab04fde41d386187b3f40b76a10f17b33c58 /source
parent2410de683fec7fc9f85fcfb2feefbc44dcddaacb (diff)
- Armature documentation update
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/doc/Armature.py30
1 files changed, 19 insertions, 11 deletions
diff --git a/source/blender/python/api2_2x/doc/Armature.py b/source/blender/python/api2_2x/doc/Armature.py
index 6357f989051..e6eee77d90d 100644
--- a/source/blender/python/api2_2x/doc/Armature.py
+++ b/source/blender/python/api2_2x/doc/Armature.py
@@ -93,6 +93,7 @@ class Bone:
@cvar quat: This Bone's quaternion.
@cvar parent: The parent Bone.
@cvar children: The children bones.
+ @cvar weight: The bone's weight.
"""
def getName():
@@ -136,7 +137,7 @@ class Bone:
def getQuat():
"""
Get this Bone's quaternion.
- @rtype: list of four floats.
+ @rtype: Quaternion object.
"""
def hasParent():
@@ -151,6 +152,12 @@ class Bone:
@rtype: Blender Bone
"""
+ def getWeight():
+ """
+ Get the bone's weight.
+ @rtype: float
+ """
+
def getChildren():
"""
Get this Bone's children Bones, if available.
@@ -217,17 +224,11 @@ class Bone:
@param z: The new z value.
"""
- def setQuat(real,imag_i,imag_j,imag_k):
+ def setQuat(quat):
"""
- Set the new quaternion orientation for this Bone.
- @type real: float
- @type imag_i: float
- @type imag_j: float
- @type imag_k: float
- @param real: The new quat[0] value.
- @param imag_i: The new quat[1] value.
- @param imag_j: The new quat[2] value.
- @param imag_k: The new quat[3] value.
+ Set the new quaternion for this Bone.
+ @type quat: Quaternion object or PyList of floats
+ @param quat: Can be a Quaternion or PyList of 4 floats.
"""
def setParent(bone):
@@ -236,3 +237,10 @@ class Bone:
@type bone: PyBone
@param bone: The Python bone that is the parent to this bone.
"""
+
+ def setWeight(weight):
+ """
+ Set the bones's weight.
+ @type weight: float
+ @param weight: set the the bone's weight.
+ """ \ No newline at end of file