PDA

View Full Version : Need to wire the rotation parameter of a look at constraint


coboman
08-21-2003, 04:39 PM
Here is the deal:

I have a character whose eyes have a "look at constraint" to control the sight.

Now I want to make the character open and close the eyelids to look up or down when the look at target goes up or down, wiring the rotation of the eyes to the morph targets of the eye lids.

BUT I CAN'T. Max does not register the rotation of the eyes, because the rotation controller is now "look at" and not Euler XYZ.

I have tried using helpers, one for the look at, then another to follow the rotation, but it never works. The new helper does no record the "look at" rotation.

Is there a way to know in Euler XYZ the rotation of a "look at constraint"? I have tried scripts that try to "read" the rotation, but I just can't.

I'm desperate here. Please help.

mattregnier
08-21-2003, 08:35 PM
Pm me a link to your file and I'll definitely help you out with it. I just got done setting up something similar and can probably help ya...i know how frustrating it can be cause it's probably something small you're looking over...

Reality3D
08-22-2003, 01:10 AM
Try using a script controller instead, and use something like

$objectname.controller.rotation.x_rotation
$objectname.controller.rotation.y_rotation
$objectname.controller.rotation.z_rotation

that will give you the euler angles in degrees

CGTalk Moderation
01-15-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.