3D designer

mAligner

2012/02/17
version 1.5

Aligns Points, Edges and Objects

History:
2012/03/23 | v1.5 : Curve Knots support Added. Align Center Added.
2012/02/17 | v1.4 : GUI redesigned. Improved speed.
2012/02/01 | v1.3 : Minor Changes. Bugs fixed. Improved performance.
2011/12/04 | v1.2 : JJ Vector Snap Added. Immed support Added.
2011/11/15 | v1.1 : Symmetry support Added. Align to Reference Plane Added.
2011/11/03 | v1.0 : First release


インストール方法:

ビューポートにドラッグ&ドロップ。

右側のTransform Menu から「mAligner」実行するとPPGが出てきます:

Align (Global)  [ポイント、エッジ、ポリゴン]

グローバル位置で整列する機能です。

Min = 最小値
(オブジェクト、ポイント、エッジ)
Max = 最大値
(オブジェクト、ポイント、エッジ)
Avg=平均値
(オブジェクト、ポイント、エッジ)
X= 記入された数値
(オブジェクト、ポイント、エッジ)


Edges to Points

整列する前にエッジをポイントに変更されます。

例えば、エッジループのポイントを整列したい時に入れないと、ポイントではなくエッジの中心でエッジ一個ずつ整列されます。
Align, Align Equidistant,Mirror,Merge(Filter)に効きます。
-------------------------------------------------------------------------------------

Local

オブジェクトのローカル座標で整列されます。デフォルトはグローバル座標になります。

Align, Align Equidistant と Mirrorに効きます。
-------------------------------------------------------------------------------------

Align to Reference Plane [ポイント、エッジ、ポリゴン]

他のポリゴン/エッジから方向を取得して整列します。

使い方:Subcomponent(ポイント、エッジ、ポリゴン)を選択してからボタンにクリック。
ポリゴンのPickカソルが出てき、整列したい方向(ポリゴン/エッジ)を選びます。
このPickカソルで選んだポリゴン/エッジに整列されます。

Polygon (Y)
(ポイント、エッジ、ポリゴン)

Edge(Y) / Edge(Z)
(ポイント、エッジ、ポリゴン)

------------------------------------------------------------------------------------
Merge Poins | Filter Edge [ポイント・エッジ]

ポイントの場合:選択されたポイントを平均値にまとめてマージする
エッジの場合:フィルターエッジ
-------------------------------------------------------------------------------------

Align Equidistant [オブジェクト、ポイント、エッジ]

等距離整列

注意:
距離値はポイント数で計算されるので、裏のポイントを選択されるとこのポイントも計算に入ってしまいます。

Align Equidistant
XB Align Equidistant Clusters

ポイントループで整列したい時に りんぷるさんの「XB Align Equidistant Clusters」
はお勧めです。同じフォルダに入っていたらPPGにボタンが出てきます。
※xsiaddonには入れておきました。
りんぷるさんのスクリプトが更新されたら、同じフォルダに入れて上書きするだけでPPGが読み込んでくれます。

ringpull's XB Align Equidistant Clusters

オブジェクト中の任意のコンポーネント群(またはクラスタ)を指定された方向に等間隔に並べるスクリプトです。 実行するとピックカソルが出てきます。ポイントを1列ずつを選んでから右クリックすると
ダイアログメニューが出てきます。整列する方向を選びます。整列する方向に任意のエッジも出きます。 http://www.ceres.dti.ne.jp/xb1080/script/AlignEquidistantCls/AlignEquidistantCls.html

-------------------------------------------------------------------------------------

Mirror [オブジェクト、ポイント、エッジ]

最初に選んだオブジェクトの位置*-1を次に選んだオブジェクトに移す。

注意:
複数のオブジェクト・ポイントも可能ですが、選ぶ順番が重要なのでRectangleで
選ぶ時に選択順番がXSI任せになってしまい、上手くいかない可能性があります。


[SHIFT]・[CTRL]・[ALT]を押しながらクリックすると、回転もミラーリングします。
(オブジェクトの場合のみ)
-------------------------------------------------------------------------------------

Align、Align Equidistant と Mirror はコマンド化されているので、CTRL+Zですぐに戻せます。
そして 「Repeat」 コマンド (XSIの[.]キー ||  Mayaの[G]キー) も出来ます。

 

Version History

2012/02/17 Ver 1.4
・系算速度UP(10~15%)
・GUIをコンパクトに
・JJ Vector Snap 機能

2012/01/31 v 1.3
・バグ直し
・コード整理

2011/12/03 v 1.2
・複数選択対応

2011/11/03 Ver 1.0

2011/11/10 Ver 1.1
・Align シンメトリー対応。
・Align to Reference Plane をコマンド化
・ちょっとだけ系算速度UP


English

How to Install:
Drag & Drop to your XSI viewport.

You will find a new option called [mAligner] in the Transform Menu on the left. It will open the PPG Menu.

Align (Global)  (Points, Edges, Objects)

Align to a Global Axis.

Min = Minimum Value
Max = Maximum Value
Avg = Average Value
X = Specified Value


Edges to Points

When you check this option, it will convert the selected edges to points before align them. If you don't check it, it will align the edges by their center position.

This option affects Align, Align Equidistant, Mirror, and Merge (Filter) commands.
-------------------------------------------------------------------------------------

Local (Object)

Change the reference Global Axis to the Object Local Axis.

This option affects Align, Align Equidistant, Mirror, and Merge (Filter) commands.
-------------------------------------------------------------------------------------

Align to Reference Plane  (Points, Edges, Objects)

Take as reference another Edge or Polygon local axis and align the selected edges, points or polygons.

Polygon (Y)

Edge(Y) / Edge(Z)

------------------------------------------------------------------------------------
Merge Poins | Filter Edge (Points, Edges)

If Points are selected : Merge all selected points to their average global position.
If Edges are selected : Filter Edges
-------------------------------------------------------------------------------------

Align Equidistant   (Points, Edges, Objects)

Separate the selected points, edges or objects with an equal distance between them.

Caution : If you select the points in the back, they will be evaluated in the equidistant distance calculation (total lenght / objects count).

Align Equidistant
XB Align Equidistant Clusters

If you want to align points loops, I recommend [XB Align Equidistant Clusters]. If this script is in the same folder as mAligner Plugin, a button will appear in the PPG.

This time the XB Align Equidistant Clusters has been included in the xsiaddon version. If you want to update it in the future, you only have to copy it to the same folder.

 

ringpull's XB Align Equidistant Clusters

When you execute the script, you will get a pick cursor. Drag select your point loops, or clusters, one by one and then right click to finish. A dialog option window will appear, select the axis you want to align it to.

ringpull's original XB Align Equidistant Clusters page (yahoo automatic translation)

-------------------------------------------------------------------------------------

Mirror   (Points, Edges, Objects)

Copy the position of the first selected object to the second selected object.
Mirror X = Copies -X, Y, Z
Mirror Y = Copies X, -Y, Z
Mirror Z = Copies Z, Y, -Z

This function also works with multiple selections (points, edges or objects), but the selection order is important so be careful. If you make the selections dragging the rectangle tool, the order will be decided by XSI so the results may not be satisfactory.

If you press SHIFT, CTRL or ALT when you click the button, it will also mirror the rotation values (work only in objects).


-------------------------------------------------------------------------------------

Align, Align Equidistant and Mirror are custom commands so you can use Undo (CTRL+Z) and Repeat ([.] with the default XSI layout or [g] with the Maya layout).

inserted by FC2 system