Vizard 7 » Command Index » Vizard objects » viewpoint » <viewpoint>.setPosition
7.7

<viewpoint>.setPosition

Sets the position of the viewpoint.

<viewpoint>.setPosition(  
[x,y,z]  
mode = viz.ABS_PARENT # Positional argument
)  
[x,y,z]
The [x,y,z] position to translate
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT
viz.ABS_GLOBAL

Perform the transformation absolutely in world coordinates.

viz.REL_LOCAL
viz.ABS_LOCAL

Perform the transformation relative to the local coordinate system.

viz.REL_PARENT
viz.REL_GLOBAL

Perform the transformation relatively in world coordinates.

Remarks

Use this action to translate a viewpoint.

Return Value

None

See also

<viewpoint>.setMatrix