Resets the translation, scaling and rotation of the given objects.
ResetTransform( [InputObjs], [Center], [Type], [AxesFilter] ); |
Parameter | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InputObjs | String | List of objects or
components.
Default Value: Selected elements |
||||||||||||||||
Center | siCenterMode | Specifies whether to translate the object or its center
Default Value: siObj
|
||||||||||||||||
Type | siTransformFilter | Specifies the type of transformation to reset
Default Value: siSRT
|
||||||||||||||||
AxesFilter | siAxesFilter | Determines which of the x,y,z arguments are valid
Default Value: 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); |