#

## view

Specify the 3D viewpoint angle

### Shortcuts:

> Keys 1,2 [7,8] implement x-axis coarse [fine] rotation.
> Keys 3,4 [9,0] implement y-axis coarse [fine] rotation.
> Keys 5,6 [-,=] implement z-axis coarse [fine] rotation.

### Usage:

> view [x y z]

> > where x, y, and z are rotations (in degrees) about each of the indicated axes.

### Summary:

> The view command sets the viewing angle of the 3D rendering window with respect to each of the primary axes.

### Implementation Notes:

> view is implemented as a built-in wind3d window command in magic. It overrides the default window client view command. Note that the wind3d window is only available when magic is compiled with the OpenGL graphics option and invoked with magic -d OGL.

> Note that macros of the wind3d window are hard-coded, and cannot be changed with the macro, gmacro, or imacro commands. There is no "`:`" macro for entering commands; to enter commands from the command-line, use the tk_path_name command. The default Tk path name of the wind3d window is "`.magic3d`".

> Without arguments, the view command returns the current viewing angle in degrees for each of the three axes.

### See Also:

> scroll
> zoom

Return to command index

Last updated: October, 2004