Difference between revisions of "Perp maker"

From PyMOLWiki
Jump to: navigation, search
(reformat page)
Line 2: Line 2:
 
|type      = script
 
|type      = script
 
|filename  = perp_maker.py
 
|filename  = perp_maker.py
|author    = [[User:Tree|Vertrees]]
+
|author    = [[User:Inchoate|Jason Vertrees]]
|license  = -
+
|license  = GPL
 
}}
 
}}
  
== Introduction ==
+
The '''perp_maker.py''' script creates perpendicular planes.
perp_maker.py:  Creates perpendicular planes. <br>
 
  
Nothing to do with cops.  Given a simple PyMol scene, attempts to <br>
+
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."
create a CGO background triangle perpendicular to the vector created - which is <br>
 
parallel to the line segment drawn through the camera point and current center of <br>
 
mass - as obtained by "get_position," or "get_view." <br>
 
  
@COPYRIGHT: Jason Vertrees (C), 2005-2007
+
== Usage ==
@LICENSE: Released under GPL:
 
  
To use: Load your sceneOrient the scene as you wish.  import the script. <br>
+
* Load your scene
Could it be any simpler? <br>
+
* Orient the scene as you wish
+
* [[Running Scripts|Run]] the script
The TTT Matrix has to be the identity, do achieve this result.  So,  <br>
 
run the following: <br>
 
  -- 'reset' <br>
 
  -- then orient your molecule as desired using the EDITING features! <br>
 
    -- before running this script, make sure 'get_view' shows the identity <br>
 
    -- matrix for the first 9 elements. <br>
 
  -- then import the script <br>
 
  
== Python Code ==
+
Could it be any simpler?
  
{{Template:PymolScriptRepoDownload|perp_maker.py}}
+
You can rotate and move the plane using the editing features (A > drag, Shift+Drag with right, middle or left mouse button).
  
 
[[Category:Script_Library]]
 
[[Category:Script_Library]]
 
[[Category:Math_Scripts]]
 
[[Category:Math_Scripts]]

Revision as of 04:22, 18 December 2011

Type Python Script
Download perp_maker.py
Author(s) Jason Vertrees
License GPL
This code has been put under version control in the project Pymol-script-repo

The perp_maker.py script 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."

Usage

  • Load your scene
  • Orient the scene as you wish
  • Run the script

Could it be any simpler?

You can rotate and move the plane using the editing features (A > drag, Shift+Drag with right, middle or left mouse button).