ResetTransform

詳細

指定したオブジェクトの移動、スケーリング、および回転をリセットします。

スクリプト構文

ResetTransform( [InputObjs], [Center], [Type], [AxesFilter] );

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 オブジェクトまたはコンポーネントのリスト

デフォルト値: 選択されているエレメント

Center siCenterMode オブジェクトまたはオブジェクト センターを移動するかどうかを指定します。

デフォルト値: siObj

指定可能な値:

説明:

siObj オブジェクト
siCtr オブジェクト センター
Type siTransformFilter リセットする変換のタイプを指定します。

デフォルト値: siSRT

指定可能な値:

説明:

siScl スケーリングのリセット
siRot 回転のリセット
siTrn 移動のリセット
siSR スケーリングと回転のリセット
siST スケーリングと移動のリセット
siRT 回転と移動のリセット
siSRT スケーリング、回転、および移動をリセット
AxesFilter siAxesFilter 引数 x、y、z のうちどれが有効であるかを判断します。

デフォルト値: siXYZ

指定可能な値:

説明:

siX X 軸でフィルタリング
siY Y 軸でフィルタリング
siXY X 軸および Y 軸でフィルタリング
siZ Z 軸でフィルタリング
siXZ X 軸および Z 軸でフィルタリング
siYZ Y 軸および Z 軸でフィルタリング
siXYZ X 軸、Y 軸、および Z 軸でフィルタリング

1. VBScript の例

' 

' 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

2. Python の例

#

# 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")

3. JScript の例

/*

	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);

関連項目

Translate Scale Rotate