[Bf-python] Armature : in Class editBone there is no variable "children"

Campbell Barton cbarton at metavr.com
Mon Dec 18 15:45:33 CET 2006


adding ob.children has been discussed before. for read only it could be 
generated each time it was used (would not be that optimal)

but for armatures its not so bad since there useually arnt 1000+ bones 
in 1 armature.

even so, using dicts you can get the bone children, see bvh import,


Joseph Gilbert wrote:
> Has to do with how armatures are built internally.
>
> Editbones have only a 1-way linkage: to the parent. Editbones exist as 
> a 'list' of objects with parent fields. When you call the method to 
> make the armature, all the parent-child relationships are established.
>
> Because python is wrapping the temporary editbone structure directly 
> there is no direct access to a child or children field. Once the 
> armature is built from the editbones, the bones are populated with 
> updated data, 2-way parenting is established, and the editbones are 
> invalidated.
>
> You could set 'child/children' through the python api, but it wouldn't 
> be used by the internal code to build the armature.
>
> On Wed, 13 Dec 2006 11:02:18 -0500, <jmsoler at free.fr> wrote:
>
>> Hi,
>>
>> Armature :
>> in  the  EditBone class , there is no "children"  variable :
>> http://www.zoo-logique.org/3D.Blender/scripts_python/API/Armature.Editbone-class.html 
>>
>> but in the Bone class, both "parent" and "children" exist :
>> http://www.zoo-logique.org/3D.Blender/scripts_python/API/Armature.Bone-class.html 
>>
>> Is it just a missing variable or is there a good reason for this ?
>> Regards, jms
>>
>> (sorry if this message is posted twice)
>>
>>
>> _______________________________________________
>> Bf-python mailing list
>> Bf-python at projects.blender.org
>> http://projects.blender.org/mailman/listinfo/bf-python
>
>
>


-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list