Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Copy pivot from another object?

17 REPLIES 17
SOLVED
Reply
Message 1 of 18
Anonymous
41319 Views, 17 Replies

Copy pivot from another object?

Hi.

Simple question: is it possible to copy a pivot orientation from object A to object B?

 

Object A

Pivot_orientation_1.jpg

 

Object B

Pivot_orientation_2.jpg

 

So that they match?

I've tried doing it manually, but it doesn't get perfect.

Thanx.

 

Pedro

17 REPLIES 17
Message 2 of 18
Steve_Curley
in reply to: Anonymous

Select object B, Command Panel > Hierarchy tab > Affect Pivot Only. Align tool (on the main tooolbar), click on Object A, Select X, Y and Z for Position and Rotation and set both Current and Target Object to Pivot Point. Click OK, click Affect Pivot Only again to turn it off. If you only want the orientation, not the position, then deselect the X, Y and Z Position checkboxes.


Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

Message 3 of 18
pshwayka
in reply to: Anonymous

Have you tried using the custom axis orientation settings in the move tool? (You need to re-enable "custom" every time you select a new edge.)

Move.png

Message 4 of 18
Anonymous
in reply to: Steve_Curley

Steve, "command panel" - that's 3ds Max, right? I can't find a similar designation in Maya... 😕

Pshwayka, that's only available with Extension 1, right?

 

Pedro

Message 5 of 18
pshwayka
in reply to: Anonymous

You can get to the settings by double-clicking on the move tool icon on the left side of your screen.

And who is Steve? Smiley Happy

Message 6 of 18
Steve_Curley
in reply to: pshwayka

Done it again - mixed up Max & Maya. Silly me...


Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

Message 7 of 18
pshwayka
in reply to: Steve_Curley

LOL.  Your answer to him must have come in while I was typing mine...

Message 8 of 18
Anonymous
in reply to: pshwayka

I meant the "Edit" button... it's only available with "Extension 1", I believe - which I don't have installed. Going to get it now.

Thanx. 🙂

 

Pedro

Message 9 of 18
pshwayka
in reply to: Anonymous

Oh!  You're probably right.  I installed extension 1 so long ago I forgot what features it added.

 

Smiley Happy

Message 10 of 18
Anonymous
in reply to: pshwayka

Found a better way:

 

1. Get script "Align pivots by Serge Scherbakov" (all credits to Serge Scherbakov)

2. Select target object > Shift+select source object > Run script

3. Select target object

4. Click Modify/Center Pivot

 

Voilá! Works like a charm. 😄

 

P

Message 11 of 18
pshwayka
in reply to: Anonymous

Provided you have the extension, both methods require the same number of clicks...

Smiley Wink

Message 12 of 18
Anonymous
in reply to: Anonymous

PR01,

 

How much of that script are you meant to copy into Python for it to work?

 

Sorry if I sound clueless. I'm a newb at Maya. 🙂

Message 13 of 18
Anonymous
in reply to: Anonymous

Hi there.

Lines 1-7 are informative. Lines 9-34 are the main script.

 

PR

Message 14 of 18
bioclone_ax45
in reply to: Anonymous

That really helped me 2 years later, THX!

Message 15 of 18
Anonymous
in reply to: Anonymous

Easy, and built into Maya.  Modify > Match Transformations > Match Pivots

Message 16 of 18
stephanpark
in reply to: Anonymous

My Maya 2018 only matches position of pivot is seems when Match Pivot is used.  I use a much clumsier method as I am new to Maya.

1. Match Pivot, now your work object's pivot is where you want it but it is not yet oriented (in my default Maya 2018).

2. Create a Poly Primitive Plane.  10, 10, 2, 2 is good with normal set to X.

3. Match All Transform the plane to to target object (not the work object) Match All Transform does as on tin and the plane has your desired orientation as normal data on its surfaces.

4. Parent the Plane into your work object.  This now allows the work object's Custom Pivot actions to be applicable to it's child objects.  We can Orient.

5. Select your work object and enter any transform mode.  Then turn on Custom Pivot mode [D].

6. While in custom pivot mode, hold down [CTRL] and hover mouse over a surface of the child Plane, notice the cursor indicate Orient.  Left click.

7. Bake pivot if you're feeling risk averse.

Note: on some occasions, it may be necessary to rotate the Plane to correct desired up-vector.  Rotate in Tool Snapping mode [J] in 90°.  Orient again.

Message 17 of 18
ArpanaViraj
in reply to: Anonymous

In Maya 2018 (and later, maybe it is in even earlier versions) you may Match Pivot MUCH easier.

1. Select Object with "wrong" pivot

2. Shift+Mouse click to select Object with target pivot

3. Top Menu - Modify - Match Transformations - Match Pivots

Enjoy!

 

match-pivot.png

Message 18 of 18
gashevkiril
in reply to: ArpanaViraj

THAAAANKS!!!!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report