指定したオブジェクトの移動、スケーリング、および回転をリセットします。
ResetTransform( [InputObjs], [Center], [Type], [AxesFilter] ); |
| パラメータ | タイプ | 説明 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| InputObjs | 文字列 |
オブジェクトまたはコンポーネントのリスト。 デフォルト値: 選択されているエレメント |
||||||||||||||||
| Center | siCenterMode |
オブジェクトまたはオブジェクト センターを移動するかどうかを指定します。 デフォルト値: siObj
|
||||||||||||||||
| Type | siTransformFilter |
リセットする変換のタイプを指定します。 デフォルト値: siSRT
|
||||||||||||||||
| AxesFilter | siAxesFilter |
引数 x、y、z のうちどれが有効であるかを判断します。 デフォルト値: siXYZ
|
' ' This example demonstrates how to reset all transformations ' of the selected objects ' NewScene , false CreatePrim "Cube", "MeshSurface" CreatePrim "Cylinder", "MeshSurface" Translate , -5.5, 5, -0.5 ResetTransform |
#
# This example demonstrates how to reset the translation of
# the object center on the X axis
#
app = Application
app.NewScene("", 0)
app.CreatePrim("Torus", "MeshSurface")
app.CreatePrim("Torus", "MeshSurface")
app.Translate("Torus,Torus1", -5, 0, 0, "siRelative", "siView", "siObj", "siXYZ",
"", "", "", "", "", "", "", "", "", 0, "")
app.ResetTransform("Torus1", "siCtr", "siTrn", "siX") |
/*
This example demonstrates how to reset the scaling
and rotation transformation of the objects Grid and
Sphere along the Y and Z axis.
*/
NewScene(null, false);
CreatePrim("Grid", "MeshSurface");
CreatePrim("Sphere", "MeshSurface");
Scale("Grid,Sphere", 2, 2, 2, siRelative, siLocal, siObj, siXYZ);
Rotate("Grid,Sphere", 0, 6, 0, siRelative, siAdd, siObj, siXYZ);
ResetTransform("Grid,Sphere", siObj, siSR, siYZ); |