PDA

View Full Version : Wiring rotation


Grayson
11-11-2002, 04:53 AM
I'm trying to wire the rotation of an object to a custom attribute on another object. The custom attribute is a float going from 0 to 180; so I expect the wired object to go from 0 degrees all the way around 180 degrees.

But when I make the connection the numbers seam almost arbitrary. 2.3 looks like it should equal 90 degrees; and if I crank the value to 10 my object has already spun completely around several times.

The rotating object has a euler rotation and only it's y rotation is getting wired.

What am I doing wrong? Any ideas on how I can get the value of the custom attribute to match the rotation in degrees of the slave object?

Mahlon
11-11-2002, 06:49 AM
Grayson,

You have to have turn degrees into radians for wiring things like this. So just type the expression degToRad before the value in the expressions dialogue box on the wire you are wiring up. So in the expression box in your y rotation wiring dialogue it would look like:

degToRad(then the name of your cusom attribute you are wiring to goes here)

You can find a more thorough explanation than mine in the tutorial on Rigging Hands and Feet in the Tutorial manual. It explains more precisely what's actually happening, and why degrees need to be converted to radians for this.

Hope this helps
Mahlon

Grayson
11-11-2002, 01:06 PM
Excellent. Thanks! :)

CGTalk Moderation
01-13-2006, 10:00 PM
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.