Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Copy pivot from another object?

Anonymous

Copy pivot from another object?

Anonymous
Not applicable

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

0 Likes
Reply
Accepted solutions (1)
42,660 Views
17 Replies
Replies (17)

Steve_Curley
Mentor
Mentor

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).

0 Likes

pshwayka
Advisor
Advisor

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

0 Likes

Anonymous
Not applicable

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

0 Likes

pshwayka
Advisor
Advisor

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

0 Likes

Steve_Curley
Mentor
Mentor

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).

0 Likes

pshwayka
Advisor
Advisor

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

0 Likes

Anonymous
Not applicable

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

0 Likes

pshwayka
Advisor
Advisor

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

 

Smiley Happy

0 Likes

Anonymous
Not applicable
Accepted solution

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

pshwayka
Advisor
Advisor

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

Smiley Wink

0 Likes

Anonymous
Not applicable

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. 🙂

0 Likes

Anonymous
Not applicable

Hi there.

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

 

PR

0 Likes

bioclone_ax45
Advocate
Advocate

That really helped me 2 years later, THX!

0 Likes

Anonymous
Not applicable

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

stephanpark
Explorer
Explorer

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.

0 Likes

ArpanaViraj
Explorer
Explorer

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

gashevkiril
Community Visitor
Community Visitor

THAAAANKS!!!!!

0 Likes