PDA

View Full Version : move object to another object, need help


Leffler
12-18-2008, 07:55 PM
Hello!

I have a problem that I canīt figure out a solution for
This is it:

I want to position my ik-arm-controller to the position or the wrist-joint when going back from FK->IK.
Either by having a locator parented to the joint and snap to that or to just snap it to the joints worldspace position. But there is a slight problem.

They donīt have the same "translationvalues". That is, if I move the ik-arm-controller -1 in Z, the locator will not get that position at all. It got +1 in Z, 0.05 in Y and 0,345 in X.

So what I need to do is this(when I want to switch back from FK->IK):
Move the ik-arm-controller to the worldspace position of the locator or joint. Totally ignoring the X,Y,Z cordinates ... just popping it into place

I thought a point-contstrain without maintain offset would do the trick but then the whole arm goes bananas .... :( Even when turning off the cycle-warning ...

Any tips? Can I use xform or something like that? Quick help would be awesome ...

// Otto

DOor
12-18-2008, 08:40 PM
in default pose is your locators position zeroed out?

Leffler
12-18-2008, 09:22 PM
Yes it is

And it will always start zeroed since its parented. Tested to pointconstrain it too, but same result. Different values. Itīs like it allmost gets the same results, only reversed. Minus instead of plus.

pritishd
12-19-2008, 02:02 AM
Hi,

When I created my IK/Fk switch I really found this the following thread at the Johnandhisdog forum useful

http://jonhandhisdog.com/index.php?option=com_smf&Itemid=82&topic=153.0

(Check out the point about the message attribute, as that is pretty awesome)

Couple of good suggestions for the IK/Fk thing, but in my case I did the following

I duplicated the IK controller, delete all the shapes and put it under the FK wrist control

Then I used the "xform -ws" command to match the IK controller to the position and rotation of the target node that is under the FK wrist.

It worked perfectly for me.

Don't forget to the same for the Pole vector and place it in the elbow control.

DOor
12-19-2008, 09:48 PM
lol firefox comes up with reported attacksite for that link BTW.

pritishd
12-20-2008, 02:03 AM
lol firefox comes up with reported attacksite for that link BTW.

Yeah, I have no idea why that is case, it has happened at my office and at home. You have to click on "ignore the warning"

For those who don't know, this is Jason Schiefer's forum( I think), so it's pretty safe, despite what firefox/google says

CGTalk Moderation
12-20-2008, 02:03 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.