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:
authorJoseph Gilbert <ascotan@gmail.com>2004-04-05 08:17:46 +0400
committerJoseph Gilbert <ascotan@gmail.com>2004-04-05 08:17:46 +0400
commit381605be7d517139faa27f5dc7413e6bbfe4cf52 (patch)
treeb6f5e9076e41fadfc9bdcf5cc74d7d191db27b35 /source/blender/python/api2_2x/doc/Armature.py
parent136b66c19f59a2d8b63521b442d73aa485eeafd3 (diff)
- documentation for armature/bone methods update
Diffstat (limited to 'source/blender/python/api2_2x/doc/Armature.py')
-rw-r--r--source/blender/python/api2_2x/doc/Armature.py29
1 files changed, 22 insertions, 7 deletions
diff --git a/source/blender/python/api2_2x/doc/Armature.py b/source/blender/python/api2_2x/doc/Armature.py
index f883a8f1808..6357f989051 100644
--- a/source/blender/python/api2_2x/doc/Armature.py
+++ b/source/blender/python/api2_2x/doc/Armature.py
@@ -46,7 +46,7 @@ class Armature:
===================
This object gives access to Armature-specific data in Blender.
@cvar name: The Armature name.
- @cvar bones: The Armature root bones (cannot be set yet).
+ @cvar bones: A List of Bones that make up this armature.
"""
def getName():
@@ -64,15 +64,19 @@ class Armature:
def getBones():
"""
- Get the Armature root bones.
- @rtype: list of Blender Bones
- @return: a list of Armature bones.
+ Get all the Armature bones.
+ @rtype: PyList
+ @return: a list of PyBone objects that make up the armature.
"""
- def setBones(bones):
+ def addBone(bone):
"""
- Set the Armature root bones (still unimplemented).
- @warn: This method wasn't implemented yet.
+ Add a bone to the armature.
+ @type bone: PyBone
+ @param bone: The Python Bone to add to the armature.
+ @warn: If a bone is added to the armature with no parent
+ if will not be parented. You should set the parent of the bone
+ before adding to the armature.
"""
class Bone:
@@ -101,6 +105,8 @@ class Bone:
"""
Get the roll value.
@rtype: float
+ @warn: Roll values are local to parent's objectspace when
+ bones are parented.
"""
def getHead():
@@ -163,6 +169,8 @@ class Bone:
Set the roll value.
@type roll: float
@param roll: The new value.
+ @warn: Roll values are local to parent's objectspace when
+ bones are parented.
"""
def setHead(x,y,z):
@@ -221,3 +229,10 @@ class Bone:
@param imag_j: The new quat[2] value.
@param imag_k: The new quat[3] value.
"""
+
+ def setParent(bone):
+ """
+ Set the bones's parent in the armature.
+ @type bone: PyBone
+ @param bone: The Python bone that is the parent to this bone.
+ """