Introduced
5.0
Description
Translate the selected objects based on view coordinates. The amount of translation is based on the center of the selection in pixel coordinates.
Scripting Syntax
ViewTranslate( [View], [X], [Y] )
Parameters
|
Parameter |
Type |
Description |
|
View |
View Default Value: -1 (current viewport) Possible Values: • -1: Current viewport • 0: Viewport A • 1: Viewport B • 2: Viewport C • 3: Viewport D |
|
|
X |
Number of pixels to translate in X. Default Value: 0 |
|
|
Y |
Number of pixels to translate in Y. Default Value: 0 |
Examples
VBScript Example
' Get the camera from View A CreatePrim "Cone", "MeshSurface" ' Translate 2 pixels to the right in the top view ViewTranslate 0, 2.0, 0.0
See Also
Autodesk Softimage v7.5