View Full Version : orient constraint?
designpain 08-15-2006, 08:36 AM why is it that when I orient constrain my controllers to my joints they rotate out of position?
any info is muchly appreciated!
thanks alot!
|
|
isoparmB
08-15-2006, 09:30 AM
That's because they have different transform values on them.
A joint and an ordinary transform object such as a group, curve or object may have different transforms even though they may have the same translate, rotate and scale values ( like 0 0 0, 0 0 0, and 1 1 1 for translate, rotate and scale repectively). There can be any number of reasons for this such as their parents may have non zeroed transforms, but more commonly it's because a joint may also have a value int it's joint orient attributes. Joints are the only other form of transform object type which differs from all the rest because of the way it handles rotations, which is why you can have a joint pointing in a certain direction while it's rotations are zeroed.
There are many ways to fix this. Two of them are:
Capture the transform values of the joint on an empty node and use that node as the constraint target of your joint. If you're constraining your joint to your controller object, you should create a null group first, which you can call constraintTarget. Then constrain this null group to the joint you want to control. Once you constain the group, it will receive the rotation values of the joint (don't change these values). You can then delete the temporary orient constraint. Now Group this constraintTarget to itself so you can reparent the new group to your controller without changing the constraintTarget's transform values. Now, orient constrain the joint to the constraintTarget.
The other way is to use an orient constraint with maintain offset turned on.
designpain
08-15-2006, 09:47 AM
yo iso
yeah i just figured it out, my joint orients were not right on the z rotation, so i adjusted them some and it fixed it up, but your alternative is really good also, thanks alot for the reply!
CGTalk Moderation
08-15-2006, 09:47 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.