This is a read-only mirror of pymolwiki.org

Difference between revisions of "Geometry export mode"

From PyMOL Wiki
Jump to navigation Jump to search
(Added basic description, example, and syntax for geometry_export_mode setting.)
 
m (1 revision)
 
(No difference)

Latest revision as of 02:00, 28 March 2014

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