Expression problem vector/angle

   3700   8   2
User Avatar
Member
217 posts
Joined: 9月 2009
Offline
hi

need a the angle between to bones.

tried this…

vangle(vrorigin(“”,“../chain_bone1),vrorigin(”“,”../chain_bone2))


thanks
User Avatar
Member
8630 posts
Joined: 7月 2007
Offline
this is the expression you need
180-vangle(vector3(0,0,1),vtorigin(“../chain_bone2”, “../chain_bone1”))

make sure chain_bone2 is a child of chain_bone1 and not the other way around
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
217 posts
Joined: 9月 2009
Offline
Thanks!
User Avatar
Member
7766 posts
Joined: 7月 2005
Offline
There's also boneangle() btw.
User Avatar
Member
217 posts
Joined: 9月 2009
Offline
Thanks!… Good to know! Its also good to know the general way.
User Avatar
Member
217 posts
Joined: 9月 2009
Offline
Any chance to define just one axis with the boneangle expression?

Thanks
User Avatar
Member
7766 posts
Joined: 7月 2005
Offline
Sorry, I don't understand. The boneangle() only returns a single angle, around the axis perpendicular to the two bone directions.
User Avatar
Member
217 posts
Joined: 9月 2009
Offline
I want to isolate my focus on just one axis… Lets say i have an shoulder ball joint situation where i want to look at the axis seperatly. How would i go for that…

Seem like a case where i need to use the vangle and vector expressions…!?
User Avatar
Member
7766 posts
Joined: 7月 2005
Offline
Then yes. The boneangle() expression is just convenient for the common case.
  • Quick Links