Description
Translates elements to an absolute position or by a relative amount. Translation can be performed on all axes, or limited to a specific axis. It can also snap to the 3D grid.
Scripting Syntax
Translate( [InputObjs], [X], [Y], [Z], [Delta], [RefMode], [Center], [AxesFilter], [Snap], [SnapReference], [SnapFilter], [SplitLocalComponents], [PropTagOnly], [Pivot], [PivotX], [PivotY], [PivotZ], [ConstructionMode], [SlideComponents] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of objects or components to translate. Default Value: Selected elements |
|
|
X |
X position Default Value: 0.0 |
|
|
Y |
Y position Default Value: 0.0 |
|
|
Z |
Z position Default Value: 0.0 |
|
|
Delta |
Specifies whether the translation is relative or absolute Default Value: siRelative |
|
|
RefMode |
The reference mode to translate within Default Value: siLocal |
|
|
Center |
Specifies whether to translate the object or its center. Note: If an object does not have a moveable center, then translating its center moves the object. Default Value: siObj |
|
|
AxesFilter |
Determines which of the x,y,z arguments are valid (used with Absolute mode only). Default Value: siXYZ |
|
|
Snap |
Specifies whether to snap the translation values to the nearest 3D grid increment Default Value: False |
|
|
SnapReference |
Object Name reference frame for snap filtering. |
|
|
SnapFilter |
Optional x,y,z absolute snap filter Default Value: siXYZ |
|
|
SplitLocalComponents |
Specifies whether to translate all components independently in Local mode Default Value: False |
|
|
PropTagOnly |
Specifies whether to restrict proportional to tagged components only Default Value: False |
|
|
Pivot |
If true the specified global pivot point is used for snapping Default Value: False |
|
|
PivotX |
X position of the pivot point Default Value: 0.0 |
|
|
PivotY |
Y position of the pivot point Default Value: 0.0 |
|
|
PivotZ |
Z position of the pivot point Default Value: 0.0 |
|
|
ConstructionMode [in/out] |
In which construction mode will the deformation be applied. This only applies when translating geometry components. Default Value: Use the current construction mode |
|
|
SlideComponents |
Constrain components to surface during translation. Works like shrink wrap for points/polygons while edges are constrained along adjacent polygon edges. Currently only supported for mesh objects. Default Value: False |
Examples
VBScript Example
' Create a Sphere CreatePrim "Sphere", "NurbsSurface", "MySphere" ' Translate the Sphere by (6,6,6) using siRelative mode translate "MySphere", 2, 2, 2, siRelative translate "MySphere", 2, 2, 2, siRelative translate "MySphere", 2, 2, 2, siRelative ' Translate the Sphere to (2,2,2) using Absolute mode translate "MySphere", 2, 2, 2, siAbsolute, , , siXYZ ' Return to position (0,0,0) translate "MySphere", , , , siAbsolute
See Also
Autodesk Softimage v7.5