Home Technical Talk

Maya snap joint to pivot problem

When I try to snap joint to pivot I do this:

I select the joint, toggle on it LRA mode (local reaction axis visability) -> hold d and v together, and when I middle mouse+drag it, it snaps it to the closest vertex.

What am I doing wrong? I want to snap the joint on the pivot point of a certain object.

Sorry for my bad English and have a great day! :D

Replies

  • antweiler
    Offline / Send Message
    antweiler polycounter lvl 8
    For pivot snapping, you have to make your pivot visible. With your object selected: Display -> Transform Display -> Rotate Pivots, or check "Display Rotate Pivot" under the transform tab in the Attribute Editor.
  • Shtreimel
    antweiler wrote: »
    For pivot snapping, you have to make your pivot visible. With your object selected: Display -> Transform Display -> Rotate Pivots, or check "Display Rotate Pivot" under the transform tab in the Attribute Editor.

    Ok, so I tried exactly what you said, and it doesn't change a single thing, still, I select the joint, hold D and V and when I snap it, it snap it to the closest vertex, not to an other pivot like I wanted to.. tho thank you for helping, your attempt on helping me is really appriciated! :D


    Could anyone please help me solve this problem? what am I doing wrong?
  • Shtreimel
    Update: So I just discovered that for I can snap a model or a curve into the center of a joint, but the thing that I'm trying to do is to snap the joint into the center of the model.

    How do I do that?
  • Denny
    Offline / Send Message
    Denny polycounter lvl 14
    A simple trick is to parent the joint to the object, then zero out its translation, and unparent it back to the world.
  • Bartalon
    Offline / Send Message
    Bartalon polycounter lvl 12
    Denny wrote: »
    A simple trick is to parent the joint to the object, then zero out its translation, and unparent it back to the world.

    This will work only if the pivot location is at center mass... Unfortunately, if the pivot point has been custom-positioned, this won't work.

    You can paste the following MEL script into a shelf button which will create a Locator at your selected object's pivot location. From there, you can snap joints and anything else to the Locator, then just delete the Locator afterward.
    {
        string $select[] = `ls -sl`;
        float $pivotTranslate[] = `xform -q -piv -ws $select[0]`;
        CreateLocator;
        move -ws $pivotTranslate[0] $pivotTranslate[1] $pivotTranslate[2];
    }
    
Sign In or Register to comment.