Difference between revisions of "Rendering plugin"

From PyMOLWiki
Jump to navigation Jump to search
Line 13: Line 13:
 
The plugins are available through the project, [http://www.pymolwiki.org/index.php/Git_intro Pymol-script-repo].
 
The plugins are available through the project, [http://www.pymolwiki.org/index.php/Git_intro Pymol-script-repo].
  
== Python Code ==
+
== Python Code - Imperial ==
  
 
{{Template:PymolScriptRepoDownload|plugins/rendering_plugin.py}}
 
{{Template:PymolScriptRepoDownload|plugins/rendering_plugin.py}}
  
 
[[Category:Plugins]] [[Category:Coloring]]
 
[[Category:Plugins]] [[Category:Coloring]]
 +
 +
== Python Code - Metric ==
 +
 +
{{Template:PymolScriptRepoDownload|plugins/rendering_plugin_metric.py}}

Revision as of 11:08, 4 December 2011

Description

Here is a small plugin to render images with a given DPI.

The "Draw" button just draws the image without raytracing (a fast way to see that the height/width look good).
The "Ray" button raytraces first, before saving.

The functionality is also available as a script (see my .pymolrc here).

First the imperial version. The metric version follows.

To install, save the script as e.g. rendering_plugin.py or rendering_plugin_metric.py and install via PyMOL's Plugin --> Manage Plugins --> Install menu.

The plugins are available through the project, Pymol-script-repo.

Python Code - Imperial

Download: plugins/rendering_plugin.py
This code has been put under version control in the project Pymol-script-repo

Python Code - Metric

Download: plugins/rendering_plugin_metric.py
This code has been put under version control in the project Pymol-script-repo