Difference between revisions of "Perp maker"

From PyMOLWiki
Jump to: navigation, search
m (moved Perp Maker to Perp maker: small letters)
(No difference)

Revision as of 11:54, 8 December 2011


perp_maker.py: 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

Download: perp_maker.py
This code has been put under version control in the project Pymol-script-repo