[Bf-python] Action name and Bone.getQuat()

Willian Padovani Germano wgermano at ig.com.br
Fri Aug 1 23:10:05 CEST 2003


On Fri, 2003-08-01 at 17:52, Jiba wrote:
> Hi all,
> 
> A few other questions about Blender's Python API...
> 
> Is there a way to get the name of Blender's Action ?

I haven't worked with this part, Jacques has and probably has a better
answer.  But maybe this can help if there isn't a way yet: looking at
the makesdna dir/ , since we don't have an Action module, it's probably
possible to hack something in, by looking at a global list of actions, 
finding the one that owns a particular ipo in one of its channels and
then grabbing this action's id.name.  If doable, it's surely easier to
code it than to understand this paragraph : ) ...

> Then, how is it possible to get the quaternion corresponding to the bone
> rotation (in the armature, NOT from the Ipo !) ?

Talking about the Armature module?  Well, Jordi added that one, but he's
not around now, so I've been taking care of it, slowly learning about
armatures / bones.

If what you want is the quaternion of the bone, it's in bone.quat, or
method bone.getQuat().  To get access to the bones, use
armature.getBones().

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list