Description
Resets the translation, scaling and rotation of the given objects.
Scripting Syntax
ResetTransform( [InputObjs], [Center], [Type], [AxesFilter] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of objects or components. Default Value: Selected elements |
|
|
Center |
Specifies whether to translate the object or its center Default Value: siObj Possible Values: • siObj: Object • siCtr: Object center |
|
|
Type |
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 |
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
VBScript Example
' Reset all transformations of the selected objects ResetTransform ' Reset the translation of the object center on the X axis ResetTransform , siCtr, siTrn, siX ' Reset the scaling and rotation transformation of the objects Grid and Sphere along the Y and Z axis. ResetTransform "Grid,Sphere", siObj, siSR, siYZ
See Also
SOFTIMAGE|XSI v6.01