Align Pivot to Direction

6 votes
Version: 
1.3
Date Updated: 
03/13/2019

 Align Pivot to DIrection(vector) allows you to align the X, Y,Z or XYZ axis of the local pivot of each of the selected objects to the direction(vector), defined by two picked in the scene points. SNAP will be turned ON automatically.  If the Shift key is down when the axis is choosen the pivot will be moved to the first picked point.

Version 1.1 should works properly with Pen(tablets).

Version 1.2 - Align To XYZ axis added. You should pick 6 points to define the three axes. Points 1 and 2 define the X axis, points 3 and 4 define the Y axis, points 5 and 6 define the Z axis

Version 1.3 - fixed bug in 3ds Max 2019.3

Version Requirement: 
3dsMax 9 +
Video URL: 
AttachmentSize
miauualignpivottodiection_10.ms2.91 KB
miauualignpivottodiection_11.ms3.35 KB
miauualignpivottodiection_12.ms6.89 KB
miauualignpivottodiection_13.ms6.29 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
wickerman123's picture

Update

Perfect!

Thank you so much :)

miauu's picture

.

It should show the dotted line now. Please, download the version _13 again and install it.

wickerman123's picture

Update

Dotted line still doesn't show up but the snapping preview cross appears.

Thank you so much for the quick update man!

miauu's picture

.

The problem is solved. Please, test the script.

wickerman123's picture

2019.3

Hi,

I love these simple scripts but this one has gone and broke in the latest version of 3ds Max 2019.

The pivot still aligns but the preview doesn't work so it's impossible to tell what the cursor is selecting or snapping to for the alignment. (The preview still works fine in the Object to Direction script)

Can this be fixed?

miauu's picture

.

If your object is scaled at subobject level then the object will moves. Applying resetXForm will sove the problem. And because of problems like this(andnot only) the golden rule is to not scale objects at subobject level.

xraven's picture

issue confirmed

Hi miauu, thanks for the awesome script first of all.

Unfortunatly, i also often run into the issue "appius" already reported (that the geo moves slightly, when only the pivot should change). I can not confirm that applying Xform does change this.

miauu's picture

.

Use the script to orient the pivot of the object.
Then, go to any suobject level, set Reference Coordiante System to PARENT and all subobjects elements will use the object's pivot.

harumscarum's picture

great tool!

wow this is musthave tool, but it would be great to apply object pivot to all sub-objects. is it possible to implement?

miauu's picture

.

THis should not happen, but I can't reproduce the error.
Next time when this happen can you check if the object is scaled before to use the script?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.