1
$\begingroup$

I made a string of bones but want specific bones to be b-bones I have: bpy.ops.object.armature_add()

the python suggestion is: bpy.data.armatures['Armature'].draw_type

how do I define b-bone from this?

$\endgroup$

1 Answer 1

1
$\begingroup$

You cannot have specific bones as b-bones..it's all of them or none of them - the type is for the whole armature. You can have all as b-bones and set the segments to more than 1 only for the specific ones.

import bpy

bpy.data.armatures['Armature'].draw_type = 'BBONE'

bpy.data.armatures['Armature'].bones['Bone'].bbone_segments = 3
$\endgroup$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .