[Bf-python] setRoll

Gilbert, Joseph jgilbert at tigr.org
Fri Oct 22 15:52:33 CEST 2004


setRoll is broken and needs to be fixed. All rolls are localspace to the
parent bone. However this is a problem. If a bone has a roll of 20 and
it's child has a roll of 20 the actual roll of the parent is 20 and the
actual roll of the child is 40.  If you ask what the roll is of the
child it will return 20.  I was working on this a while back but it is
difficult to solve internally owing to the way that bone's are setup.
They are stored as a axis/angle and then are transformed to a matrix for
writing to the screen. What is needed is some code to deconstruct the
parent/child matrix of a bone to recreate the worldspace axis/angle.
With this code you should be able to deal with worldspace/localspace
rolls however, this is not completed yet.

-----Original Message-----
From: bf-python-bounces at projects.blender.org
[mailto:bf-python-bounces at projects.blender.org] On Behalf Of Martin
Poirier
Sent: Friday, October 22, 2004 6:44 AM
To: Blender Foundation Python list
Subject: Re: [Bf-python] setRoll

How would you define worldspace roll?

Roll is along the local Y axis of the bones, so it
seems always local to me...

Martin

--- Tom Musgrove <tommusgrove__ at hotmail.com> wrote:

> It might be nice to change
> 
> setRoll(roll)
> 
> to
> 
> setRoll(roll, space ='localspace')
> 
> 
> and have the option of using worldspace as well,
> 
> Tom M.
> LetterRip
> 
>
_________________________________________________________________
> Express yourself instantly with MSN Messenger!
> Download today - it's FREE! 
>
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
>
http://projects.blender.org/mailman/listinfo/bf-python
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 
_______________________________________________
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