Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   HELP !?! Parent constrain doesn't maintain offset. (https://simplymaya.com/forum/showthread.php?t=16534)

Eelco 30-04-2005 08:03 PM

HELP !?! Parent constrain doesn't maintain offset.
 
I can't get this parent constraint working on my character. It needs to pick up something from the floor. So I select the character's hand, then the object and apply a Constrain > parent (I reset the options first).
But every time I apply the constrain, the object moves from its position. It looks like it tries to align itself to the new parent, the hand.
Maintain Offset is checked. What am I doing wrong here ?!?

I just stumbled onto this problem while finnishing up my animation for the march/april challange. Crap!! :(

Falott 01-05-2005 10:07 AM

I didnĀ“t use those commands yet, but what would happen if you parent the hand to the object? or if this is bullcrap - maybe move the hand that near to the object bevor parenting, so the object itself does not move..?

Pony 01-05-2005 11:53 AM

your grouping might be off. you probably have the nad's tranlations not reset and nested in some groups or under some joints.. so when you parint cosntrain the ball thinks it is maintaining the offset. I couldn't say for sure though as its a complex problem.

but try makeing 2 cubes just in the world space and parint constrain one to the other to make sure the offset really is working properly.

Eelco 01-05-2005 06:28 PM

Quote:

Originally posted by Pony
your grouping might be off. you probably have the nad's tranlations not reset and nested in some groups or under some joints..
what is a "nad"? Or am I just missing too much sleep due to the challenge.
The hand is parented and grouped to joints and geometry. It might be that there is somthing somewhere in those couple of hundred nodes that causes all of this? hehehe.

I temporary found a workaround for it .... cut to the next scene. ;) I just didn't have enough time to get it done properly for the march/april challenge. Have a look at my post under the newbies final theard.
I'll be out for a couple of days (celibrate my baby girl's 2nd birthday), but I will get back at this when Ive returned.

gohan1842 02-05-2005 01:50 AM

if i were u id select the object first then the hand and parent

gohan1842 02-05-2005 01:51 AM

as in parent i dont mean constraint. i mean hit 'p' on ur keyboard or go to edit - parent

Eelco 03-05-2005 04:50 PM

That's what I end up doing. Just parent a copy of the object to the hand and hide one when the other is visible, and cut to the next scene just before it picks up stuff during post production. It's a work around somthing that should be no problem at all. I really had planned to have the character show how it gracefully picks up things (zoomed in and even in slowmo).

I'll break down the model till I found the problem-node Pony mentioned about.
Still not sure what the "nad's tranlations not reset" is about though. Pony?

Pony 03-05-2005 10:36 PM

LOL sorry yeah node's not nad.
(trots off embarased)

probably would be a help to see the hypergraph of the character unless you got it worked out now. There are so many ways to put them togather.

but from the animation I sean, looks good though.

Eelco 05-05-2005 11:23 AM

1 Attachment(s)
I parent constrain the pencil (see anim. in next post) to the red hand-pad subdiv mesh, which results in the unwanted offset (the pad has frozen transformations and a deleted history). But found out that when I constrain the object to the parent mesh (R_HandWrist) or parent-parent joint (R_Joint_Wrist) of the pad mesh (R_HandPad), it works. I parented the pad straight to the joint and also works ok.
:confused:

Since the constrain works on its parent's mesh, and works on its parent's parent joint, and works on the pad parented under the joint,... could it be that a mesh can not be a parent constrain target when it's under another non-joint node in a joint hierarchy or something?? (just guessing)

There must be some logic behind this. I'm determined to find out. It's gonna bug me till I figured out why (these things can keep me awake all night). ..... or is it a bug?

I learned parent constraining from the Maya 6 tutorial: Learning Resources > Tutorials > Animation > Lesson 5 Inverse Kinematics > Applying parent constraints on an IK system (link might not work).
Here the parent constrain target objects for the CargoBox are the ArmControl (parented under another mesh) and Platform (root node). Neither parented in a joint hierarchy.

Attached a hypergraph screencap of a stipped hierarchy.

Eelco 05-05-2005 11:29 AM

1 Attachment(s)
The anim of the offset when I parent constrain the pencil to the handpad.


All times are GMT. The time now is 05:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018