Python : Cannot Access "bone.roll" property #55883

Closed
opened 2018-07-10 11:28:07 +02:00 by Félix · 4 comments

System Information
Windows 8.1 - GTX1060

Blender Version
Broken: 2.79b

Short description of error
I cannot access the bone.roll property in python console.

Exact steps for others to reproduce the error

  • In python console, enter:
bpy.ops.object.armature_add()
bpy.ops.object.editmode_toggle()
bpy.data.objects["Armature"].data.bones["Bone"].roll
  • You get the following error message :

Traceback (most recent call last):
File "<blender_console>", line 1, in
AttributeError: 'Bone' object has no attribute 'roll'

Which is against the Online Python Reference : https://docs.blender.org/api/blender_python_api_current/bpy.types.EditBone.html#bpy.types.EditBone.roll

**System Information** Windows 8.1 - GTX1060 **Blender Version** Broken: 2.79b **Short description of error** I cannot access the bone.roll property in python console. **Exact steps for others to reproduce the error** - In python console, enter: ``` bpy.ops.object.armature_add() bpy.ops.object.editmode_toggle() bpy.data.objects["Armature"].data.bones["Bone"].roll ``` - You get the following error message : > Traceback (most recent call last): > File "<blender_console>", line 1, in <module> > AttributeError: 'Bone' object has no attribute 'roll' Which is against the Online Python Reference : https://docs.blender.org/api/blender_python_api_current/bpy.types.EditBone.html#bpy.types.EditBone.roll
Author

Added subscriber: @Miadim

Added subscriber: @Miadim

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2018-07-10 11:30:45 +02:00

You need .edit_bones instead of .bones to get an EditBone.

You need `.edit_bones` instead of `.bones` to get an `EditBone`.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#55883
No description provided.