Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Get View
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''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. ===USAGE=== get_view ===PYMOL API=== <source lang="python"> cmd.get_view(output=1, quiet=1) my_view = cmd.get_view() </source> output control: *0 = output matrix to screen *1 = don't output matrix to screen *2 = force output to screen even if log file is open *3 = return formatted string instead of a list ===API USAGE=== <source lang="python"> cmd.get_view(0) # zero option suppresses output (LEGACY approach) cmd.get_view(quiet=1) # suppresses output using PyMOL's normal "quiet" parameter. </source> ===NOTES=== Contents of the view matrix *0 - 8 = column-major 3x3 matrix which rotates model axes to camera axes *9 - 11 = origin of rotation relative to the camera in camera space *12 - 14 = origin of rotation in model space *15 = front plane distance from the camera *16 = rear plane distance from the camera *17 = orthoscopic flag (not implemented in older versions) ===SEE ALSO=== [[Set View]], [[View]], [[Model_Space_and_Camera_Space]] [[Category:Commands|Get View]] [[Category:View Module|Get View]]
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Get View
Add topic