newb question regarding expressions.


#1

Hello,

This is my first post here in the Messiah forum. I’ve been a long time Lightwave user who just recently purchased Studio Workstation. Rigging is an absolute joy in this app, but I’m having a problem setting up an expression which mimics the behavior of “Follower” in Lightwave. I’ve got my character rigged with IK on both arms and legs. I want the characters shoulder bone to rotate up and down slightly when I move the characters arm up or down via IK, so I setup an expression to add a percentage of the biceps heading to the shoulder heading. The problem is that it doesn’t work as I would expect. In fact I get wildly bizarre results. Here is the expression:

-------var

  |     |

  |     |__(([Bicep:heading]-22.1705)*.10)

  |

  |__Shoulder::heading

The –22.1705 subtracts the rest rotation of the Bicep bones heading, while the “*.10” returns 10 percent of the rotational value. I have the expression set to after IK and “+” to add this value to the current heading of the Shoulder bone. However what I’m seeing is my Shoulder bone flipping out. To trouble shoot the problem I tried replacing the expression with a constant value and then changing the value to see the result, but changes of even one degree are giving wildly different results and adding to my confusion. I’ve been through the docs, and successfully did a couple of the tutorials on expressions. There must be something I’m missing. Can anyone point me in the right direction.

Thanks.

-ub52


#2

use DTOR witch convert degrees values into radiant values (values in messiah are in radiant)
180
DTOR = pi = 3.14

and
Bonne Année !!!


#3

Thanks NNois. That fixed it.

-ub52


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.