v5.0
Translate the selected objects based on view coordinates. The amount of translation is based on the center of the selection in pixel coordinates.
ViewTranslate( [View], [X], [Y] ); |
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
View | Integer | View
Default Value: -1 (current viewport)
|
||||||||||||
X | Double | Number of pixels to translate in X.
Default Value: 0 |
||||||||||||
Y | Double | Number of pixels to translate in Y.
Default Value: 0 |
' 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 |