[Bf-python] Making IK flag writable in the Bone class
Gilbert, Joseph
jgilbert at tigr.org
Fri Oct 22 15:45:57 CEST 2004
There is more to it than that. The reason that setIK was not implemented
was that once the flag is set the matrix of each bone must be
recalculated so that the head becomes attached to the tail of the
preceeding bone. You will be able to set the flag but it's basically
meaningless without the recalculation of the parent/child bone matrices.
-----Original Message-----
From: bf-python-bounces at projects.blender.org
[mailto:bf-python-bounces at projects.blender.org] On Behalf Of Jonas
Petersen
Sent: Friday, October 22, 2004 8:10 AM
To: bf-python at projects.blender.org
Subject: [Bf-python] Making IK flag writable in the Bone class
Hi everybody!
I hope this ist the right place to post this...
The IK flag in the Bone python class is read only. The only way to
modify it is the corresponding button in the buttons panel. It's not
possible via python.
I modified python/api2_2x/Bone.c so the flag can be modified via
python.
For now I did it by adding an optional bool parameter to the hasIK()
function that sets/unsets the flag.
An alternative or additional way would be to make the IK class member
variable writeable.
What do you think?
I could supply a patch if desired.
Regards,
Jonas
_______________________________________________
Bf-python mailing list
Bf-python at projects.blender.org
http://projects.blender.org/mailman/listinfo/bf-python
More information about the Bf-python
mailing list