ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. Python 例.

概要

align([alignToLead=boolean], [coordinateSystem=name], [xAxis=string], [yAxis=string], [zAxis=string])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

align は、取り消し可能、照会不可能、および編集不可能です。

オブジェクトを X、Y、Z 軸に沿って位置合わせまたはスプレッドします。

戻り値

booleantrue/false

キーワード

objects, move, align

関連

move

フラグ

alignToLead, coordinateSystem, xAxis, yAxis, zAxis
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
alignToLead(atl) boolean create
設定すると、先頭オブジェクトから最小値、中央値、または最大値が計算されます。設定しないと、すべてのオブジェクトの平均値になります。
既定は false です。
coordinateSystem(cs) name create
X、Y、Z 座標を定義します。既定はワールド座標です。
xAxis(x) string create
none、min、mid、max、dist、stack のいずれか。
実行する位置合わせの種類を定義します。既定は none です。
yAxis(y) string create
none、min、mid、max、dist、stack のいずれか。
実行する位置合わせの種類を定義します。既定は none です。
zAxis(z) string create
none、min、mid、max、dist、stack のいずれか。
実行する位置合わせの種類を定義します。既定は none です。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

# align the selected objects to their average mid-point in x
cmds.align(x='mid')

# align the selected objects to the mid-point in x of the first select object
cmds.align(x='mid', alignToLead=True)