Perp maker

From PyMOLWiki
Revision as of 17:43, 11 December 2011 by Tlinnet (talk | contribs)
Jump to navigation Jump to search
Type Python Script
Download perp_maker.py
Author(s) Vertrees
License -
This code has been put under version control in the project Pymol-script-repo

Introduction

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