diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-10-26 12:19:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-10-26 12:19:40 +0400 |
commit | ef85f6ea21c0af43b96c6c3cbb1b80f23ac00266 (patch) | |
tree | eaf81dc5f7de1cc20c7a38e2b48c919ad7744612 /source/blender/python/api2_2x/doc | |
parent | fd98d38672ba4339e9ebb31d5d54e40e3dde045a (diff) |
==Python API==
layerMask access for bone and armatures
Window.PoseMode() similar to Window.EditMode()
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r-- | source/blender/python/api2_2x/doc/Armature.py | 10 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/Window.py | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/Armature.py b/source/blender/python/api2_2x/doc/Armature.py index 157e8b28656..0dbaf28d6f8 100644 --- a/source/blender/python/api2_2x/doc/Armature.py +++ b/source/blender/python/api2_2x/doc/Armature.py @@ -156,6 +156,11 @@ class Armature: @type mirrorEdit: Bool @ivar autoIK: Adds temporary IK chains while grabbing bones @type autoIK: Bool + @ivar layerMask: Layer bitmask + Example:: + # set armature to layers 14 and 16 + armature.layerMask = (1<<13) + (1<<15) + @type layerMask: Int """ def __init__(name = 'myArmature'): @@ -282,6 +287,11 @@ class Bone: @type headRadius: Float @ivar tailRadius: The radius of this bones head (used for envalope bones) @type tailRadius: Float + @ivar layerMask: Layer bitmask + Example:: + # set bone to layers 14 and 16 + bone.layerMask = (1<<13) + (1<<15) + @type layerMask: Int """ def hasParent(): diff --git a/source/blender/python/api2_2x/doc/Window.py b/source/blender/python/api2_2x/doc/Window.py index d59b5ec9fa6..b5145d34ca2 100644 --- a/source/blender/python/api2_2x/doc/Window.py +++ b/source/blender/python/api2_2x/doc/Window.py @@ -284,6 +284,20 @@ def EditMode(enable = -1, undo_msg = 'From script', undo = 1): because the normal mesh will be rebuilt based on its unchanged edit mesh. """ +def PoseMode(enable = -1): + """ + Get and optionally set the current pose mode status: in or out. + @type enable: int + @param enable: get/set current status: + - -1: just return current status (default); + - 0: leave edit mode; + - 1: enter edit mode. + + @return: 0 if Blender is not in edit mode right now, 1 otherwise. + @warn: This uses the active armature objects posemode status, enabling pose + mode for non armature objects will always fail. + """ + def ViewLayers (layers = [], winid = None): """ Get and optionally set the currently visible layers in all 3d Views. |