==Python API==

layerMask access for bone and armatures
Window.PoseMode() similar to Window.EditMode()
This commit is contained in:
2007-10-26 08:19:40 +00:00
parent fd98d38672
commit ef85f6ea21
7 changed files with 160 additions and 4 deletions

View File

@@ -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.