ResetTransform

Description

Resets the translation, scaling and rotation of the given objects.

Scripting Syntax

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

Parameters

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

Possible Values:

siObj: Object

siCtr: Object center

Type

siTransformFilter

Specifies the type of transformation to reset

Default Value: siSRT

Possible Values:

siScl: Reset scaling

siRot: Reset rotation

siTrn: Reset translation

siSR: Reset scaling and rotation

siST: Reset scaling and translation

siRT: Reset rotation and translation

siSRT: Reset scaling, rotation, and translation

AxesFilter

siAxesFilter

Determines which of the x,y,z arguments are valid

Default Value: siXYZ

Possible Values:

siX: Filter in X

siY: Filter in Y

siXY: Filter in X & Y

siZ: Filter in Z

siXZ: Filter in X & Z

siYZ: Filter in Y & Z

siXYZ: Filter in X & Y & Z

Examples

1. VBScript Example

' 
' 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 Example

#
# 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 Example

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

See Also

Translate

Scale

Rotate



Autodesk Softimage v7.5