Perp maker

From PyMOLWiki
Revision as of 11:52, 8 December 2011 by Tlinnet (talk | contribs)
Jump to: navigation, search

Introduction Creates perpendicular planes.

Nothing to do with cops. Given a simple PyMol scene, attempts to
create a CGO background triangle perpendicular to the vector created - which is
parallel to the line segment drawn through the camera point and current center of
mass - as obtained by "get_position," or "get_view."

@COPYRIGHT: Jason Vertrees (C), 2005-2007 @LICENSE: Released under GPL:

To use: Load your scene. Orient the scene as you wish. import the script.
Could it be any simpler?

The TTT Matrix has to be the identity, do achieve this result. So,
run the following:

  -- 'reset' 
-- then orient your molecule as desired using the EDITING features!
-- before running this script, make sure 'get_view' shows the identity
-- matrix for the first 9 elements.
-- then import the script

Python Code

This code has been put under version control in the project Pymol-script-repo