Get View

From PyMOLWiki
Jump to: navigation, search

get_view returns and optionally prints out the current view information in a format which can be embedded into a command script and can be used in subsequent calls to set_view.

If a log file is currently open, get_view will not write the view matrix to the screen unless the "output" parameter is 2.

This command is very useful for saving the orientation of a scene for later. Authors of molecular movies may find this command very powerful.

Contents

USAGE

get_view

PYMOL API

cmd.get_view(output=1,quiet=1)
 
my_view= cmd.get_view()

output control:

API USAGE

cmd.get_view(0) # zero option suppresses output (LEGACY approach)
cmd.get_view(quiet=1) # suppresses output using PyMOL's normal "quiet" parameter.

NOTES

Contents of the view matrix

SEE ALSO

Set View, View, Model_Space_and_Camera_Space

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox