ジャンプ先: 概要. 注. 戻り値. 関連. フラグ. MEL 例.
xform [-absolute] [-boundingBox] [-boundingBoxInvisible] [-centerPivots] [-centerPivotsOnComponents] [-deletePriorHistory boolean] [-euler] [-matrix float float float float float float float float float float float float float float float float] [-objectSpace] [-parentSpace] [-pivots linear linear linear] [-preserve boolean] [-preserveUV] [-reflection] [-reflectionAboutBBox] [-reflectionAboutOrigin] [-reflectionAboutX] [-reflectionAboutY] [-reflectionAboutZ] [-reflectionTolerance float] [-relative] [-rotateAxis angle angle angle] [-rotateOrder string] [-rotatePivot linear linear linear] [-rotateTranslation linear linear linear] [-rotation angle angle angle] [-scale float float float] [-scalePivot linear linear linear] [-scaleTranslation linear linear linear] [-shear float float float] [-translation linear linear linear] [-worldSpace] [-worldSpaceDistance] [-zeroTransformPivots]
[objects...]
xform は、取り消し可能、照会可能、および編集不可能です。
このコマンドは、変換ノードにおける、あらゆる要素の照会/設定に使用できます。また、変換行列やバウンディング ボックスのような、直接設定できない値を照会することもできます。ピボット ポイントを設定することもできます。 すべての値は、変換の座標(アトリビュート - スペース)で指定します。 さらに、アトリビュートはフラグ セクションに表示される順序で適用されるか、返されます(この順序は、次に示す変換行列に表示される順序に対応します)。 関連トピック 移動、回転、スケール// -1 -1 //[M] = [sp]x[s]x[sh]x[sp]x[st]x[rp]x[ar]x[ro]x[rp]x[rt]x[t] // //where: // //[sp] = | 1 0 0 0 | = scale pivot matrix // | 0 1 0 0 | // | 0 0 1 0 | // | -spx -spy -spz 1 | // //[s] = | sx 0 0 0 | = scale matrix // | 0 sy 0 0 | // | 0 0 sz 0 | // | 0 0 0 1 | // // //[sh] = | 1 0 0 0 | = shear matrix // | xy 1 0 0 | // | xz yz 1 0 | // | 0 0 0 1 | // // -1 //[sp] = | 1 0 0 0 | = scale pivot inverse matrix // | 0 1 0 0 | // | 0 0 1 0 | // | spx spy spz 1 | // //[st] = | 1 0 0 0 | = scale translate matrix // | 0 1 0 0 | // | 0 0 1 0 | // | stx sty stz 1 | // //[rp] = | 1 0 0 0 | = rotate pivot matrix // | 0 1 0 0 | // | 0 0 1 0 | // | -rpx -rpy -rpz 1 | // //[ar] = | * * * 0 | = axis rotation matrix // | * * * 0 | (composite rotation, // | * * * 0 | see [rx], [ry], [rz] // | 0 0 0 1 | below for details) // //[rx] = | 1 0 0 0 | = rotate X matrix // | 0 cos(x) sin(x) 0 | // | 0 -sin(x) cos(x) 0 | // | 0 0 0 1 | // //[ry] = | cos(y) 0 -sin(y) 0 | = rotate Y matrix // | 0 1 0 0 | // | sin(y) 0 cos(y) 0 | // | 0 0 0 1 | // //[rz] = | cos(z) sin(z) 0 0 | = rotate Z matrix // | -sin(z) cos(z) 0 0 | // | 0 0 1 0 | // | 0 0 0 1 | // // -1 //[rp] = | 1 0 0 0 | = rotate pivot matrix // | 0 1 0 0 | // | 0 0 1 0 | // | rpx rpy rpz 1 | // //[rt] = | 1 0 0 0 | = rotate translate matrix // | 0 1 0 0 | // | 0 0 1 0 | // | rtx rty rtz 1 | // //[t] = | 1 0 0 0 | = translation matrix // | 0 1 0 0 | // | 0 0 1 0 | // | tx ty tz 1 |
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-absolute(-a)
|
|
![]() |
||
|
||||
-boundingBox(-bb)
|
|
![]() |
||
|
||||
-boundingBoxInvisible(-bbi)
|
|
![]() |
||
|
||||
-centerPivots(-cp)
|
|
![]() |
||
|
||||
-centerPivotsOnComponents(-cpc)
|
|
![]() |
||
|
||||
-deletePriorHistory(-dph)
|
boolean
|
![]() |
||
|
||||
-euler(-eu)
|
|
![]() |
||
|
||||
-matrix(-m)
|
float float float float float float float float float float float float float float float float
|
![]() ![]() |
||
|
||||
-objectSpace(-os)
|
|
![]() ![]() |
||
|
||||
-parentSpace(-ps)
|
|
![]() ![]() |
||
|
||||
-pivots(-piv)
|
linear linear linear
|
![]() ![]() |
||
|
||||
-preserve(-p)
|
boolean
|
![]() |
||
|
||||
-preserveUV(-puv)
|
|
![]() |
||
|
||||
-reflection(-rfl)
|
|
![]() |
||
|
||||
-reflectionAboutBBox(-rab)
|
|
![]() |
||
|
||||
-reflectionAboutOrigin(-rao)
|
|
![]() |
||
|
||||
-reflectionAboutX(-rax)
|
|
![]() |
||
|
||||
-reflectionAboutY(-ray)
|
|
![]() |
||
|
||||
-reflectionAboutZ(-raz)
|
|
![]() |
||
|
||||
-reflectionTolerance(-rft)
|
float
|
![]() |
||
|
||||
-relative(-r)
|
|
![]() |
||
|
||||
-rotateAxis(-ra)
|
angle angle angle
|
![]() ![]() |
||
|
||||
-rotateOrder(-roo)
|
string
|
![]() ![]() |
||
|
||||
-rotatePivot(-rp)
|
linear linear linear
|
![]() ![]() |
||
|
||||
-rotateTranslation(-rt)
|
linear linear linear
|
![]() ![]() |
||
|
||||
-rotation(-ro)
|
angle angle angle
|
![]() ![]() |
||
|
||||
-scale(-s)
|
float float float
|
![]() ![]() |
||
|
||||
-scalePivot(-sp)
|
linear linear linear
|
![]() ![]() |
||
|
||||
-scaleTranslation(-st)
|
linear linear linear
|
![]() ![]() |
||
|
||||
-shear(-sh)
|
float float float
|
![]() ![]() |
||
|
||||
-translation(-t)
|
linear linear linear
|
![]() ![]() |
||
|
||||
-worldSpace(-ws)
|
|
![]() ![]() |
||
|
||||
-worldSpaceDistance(-wd)
|
|
![]() ![]() |
||
|
||||
-zeroTransformPivots(-ztp)
|
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// create object to manipulate sphere -n sphere1; // set rotation of sphere xform -r -ro 0 90 0; // change the rotate order but preserve the overall transformation xform -p true -roo yzx;