Geometry export mode

From PyMOLWiki
Revision as of 14:49, 5 January 2014 by Jaredsampson (talk | contribs) (Added basic description, example, and syntax for geometry_export_mode setting.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

Geometry export mode is a partially-implemented setting that can be useful for exporting PyMOL geometry to other programs. When enabled, scene information, such as the viewport location and lighting, is omitted from the output.

Example

For a simple scene with a single pseudoatom, the top of the VRML2 output file (from save test.wrl) looks like this:

   #VRML V2.0 utf8
   
   Viewpoint {
    position 0 0 50.00000000
    orientation 1 0 0 0
    description "Z view"
    fieldOfView 0.465421
   }
   DirectionalLight {
    direction -0.348155 -0.348155   -0.870
   }
   NavigationInfo {
    headlight TRUE
    type "EXAMINE"
   }
   ...

However, with geometry_export_mode enabled, the Viewpoint and DirectionalLight sections are omitted:

   #VRML V2.0 utf8
   
   NavigationInfo {
    headlight TRUE
    type "EXAMINE"
   }
   ...

Syntax

set geometry_export_mode, 0    # off (default)
set geometry_export_mode, 1    # on