Rendering plugin: Difference between revisions
Line 11: | Line 11: | ||
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. | 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 | The plugins are available through the project, [http://www.pymolwiki.org/index.php/Git_intro Pymol-script-repo]. | ||
== Python Code - Imperial version == | == Python Code - Imperial version == |
Revision as of 12:14, 3 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 version
This code has been put under version control. In the project, Pymol-script-repo.
For a color coded view:
https://github.com/Pymol-Scripts/Pymol-script-repo/blob/master/plugins/rendering_plugin.py
See the raw code or download manually, by right clicking the following link here -> Save as: rendering_plugin.py
https://raw.github.com/Pymol-Scripts/Pymol-script-repo/master/plugins/rendering_plugin.py
Python Code - metric version
This code has been put under version control. In the project, Pymol-script-repo.
For a color coded view:
https://github.com/Pymol-Scripts/Pymol-script-repo/blob/master/plugins/rendering_plugin_metric.py
See the raw code or download manually, by right clicking the following link here -> Save as: rendering_plugin_metric.py
https://raw.github.com/Pymol-Scripts/Pymol-script-repo/master/plugins/rendering_plugin_metric.py