Expression problem vector/angle
3700
8
2
mickyblue
Member
217 posts
Joined: 9月 2009
Offline
2013年6月5日 17:56
hi need a the angle between to bones. tried this… vangle(vrorigin(“”,“../chain_bone1),vrorigin(”“,”../chain_bone2)) thanks
tamte
Member
8630 posts
Joined: 7月 2007
Offline
2013年6月5日 18:13
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: 9月 2009
Offline
2013年6月5日 18:32
Thanks!
edward
Member
7766 posts
Joined: 7月 2005
Offline
2013年6月6日 20:57
There's also boneangle() btw.
mickyblue
Member
217 posts
Joined: 9月 2009
Offline
2013年6月7日 2:15
Thanks!… Good to know! Its also good to know the general way.
mickyblue
Member
217 posts
Joined: 9月 2009
Offline
2013年6月9日 16:15
Any chance to define just one axis with the boneangle expression? Thanks
edward
Member
7766 posts
Joined: 7月 2005
Offline
2013年6月11日 23:15
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: 9月 2009
Offline
2013年6月12日 3:04
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
7766 posts
Joined: 7月 2005
Offline
2013年6月12日 21:13
Then yes. The boneangle() expression is just convenient for the common case.