ViewTranslate
 
 
 

ViewTranslate

Introduced

v5.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 Integer View

Default Value: -1 (current viewport)

Possible Values:

Description:

-1 Current viewport
0 Viewport A
1 Viewport B
2 Viewport C
3 Viewport D
X Double Number of pixels to translate in X.

Default Value: 0

Y Double 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

ViewNudgeLeft ViewNudgeRight ViewNudgeUp ViewNudgeDown