This is a read-only mirror of pymolwiki.org

Difference between revisions of "Set View"

From PyMOL Wiki
Jump to navigation Jump to search
m (Fixed link)
 
(Description of the view matrix. Including broken orthoscopic view flag)
Line 9: Line 9:
 
cmd.set_view(string-or-sequence view)   
 
cmd.set_view(string-or-sequence view)   
 
</source>  
 
</source>  
 +
 +
===NOTES===
 +
Contents of the view matrix
 +
*0  -  8 = 3x3 rotation matrix which transforms model to camera space
 +
*9  - 11 = camera position (in model space and relative to the origin of rotation)
 +
*12 - 14 = origin of rotation (in model space)
 +
*15      = front plane distance from the camera
 +
*16      = rear plane distance from the camera
 +
*17      = not implemented (the online help says that this should be the orthoscopic view flag, but PyMol as of v0.99 does not implement this)
  
 
===SEE ALSO===
 
===SEE ALSO===

Revision as of 20:51, 8 August 2006

DESCRIPTION

set_view sets viewing information for the current scene, including the rotation matrix, position, origin of rotation, clipping planes, and the orthoscopic flag.

USAGE

set_view (...)  where ... is 18 floating point numbers

PYMOL API

cmd.set_view(string-or-sequence view)

NOTES

Contents of the view matrix

  • 0 - 8 = 3x3 rotation matrix which transforms model to camera space
  • 9 - 11 = camera position (in model space and relative to the origin of rotation)
  • 12 - 14 = origin of rotation (in model space)
  • 15 = front plane distance from the camera
  • 16 = rear plane distance from the camera
  • 17 = not implemented (the online help says that this should be the orthoscopic view flag, but PyMol as of v0.99 does not implement this)

SEE ALSO

Get View