Expression problem vector/angle
3676
8
2
mickyblue
Member
217 posts
Joined: Sept. 2009
Offline
June 5, 2013 5:56 p.m.
hi need a the angle between to bones. tried this… vangle(vrorigin(“”,“../chain_bone1),vrorigin(”“,”../chain_bone2)) thanks
tamte
Member
8595 posts
Joined: July 2007
Offline
June 5, 2013 6:13 p.m.
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
mickyblue
Member
217 posts
Joined: Sept. 2009
Offline
June 5, 2013 6:32 p.m.
Thanks!
edward
Member
7734 posts
Joined: July 2005
Online
June 6, 2013 8:57 p.m.
There's also boneangle() btw.
mickyblue
Member
217 posts
Joined: Sept. 2009
Offline
June 7, 2013 2:15 a.m.
Thanks!… Good to know! Its also good to know the general way.
mickyblue
Member
217 posts
Joined: Sept. 2009
Offline
June 9, 2013 4:15 p.m.
Any chance to define just one axis with the boneangle expression? Thanks
edward
Member
7734 posts
Joined: July 2005
Online
June 11, 2013 11:15 p.m.
Sorry, I don't understand. The boneangle() only returns a single angle, around the axis perpendicular to the two bone directions.
mickyblue
Member
217 posts
Joined: Sept. 2009
Offline
June 12, 2013 3:04 a.m.
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…!?
edward
Member
7734 posts
Joined: July 2005
Online
June 12, 2013 9:13 p.m.
Then yes. The boneangle() expression is just convenient for the common case.