#

## defaults

Revert to default view scale and position.

### Shortcuts:

> Key macro space implements the command defaults.

### Usage:

> defaults

### Summary:

> The defaults command reverts the scale and angle settings of the view to the default values. The default scale fits the layout to the size of the 3D viewing window. The default rotation is a view from directly above the layout, which matches the view in the layout window.

### Implementation Notes:

> defaults is implemented as a built-in wind3d window command in magic. It can only be invoked from a window created with the specialopen wind3d command, or the render procedure. 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`".

Return to command index

Last updated: October, 2004