Difference between revisions of "Perp maker"

From PyMOLWiki
Jump to: navigation, search
m (moved Perp Maker to Perp maker: small letters)
Line 1: Line 1:
 +
{{Infobox script-repo
 +
|type      = script
 +
|filename  = perp_maker.py
 +
|author    = [[User:Tree|Vertrees]]
 +
|license  = -
 +
}}
 +
 
== Introduction ==
 
== Introduction ==
 
perp_maker.py:  Creates perpendicular planes. <br>
 
perp_maker.py:  Creates perpendicular planes. <br>

Revision as of 16:43, 11 December 2011

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