On Thu, Jan 21, 2010 at 5:33 AM, mjvanraaij <mark.vanra...@usc.es> wrote: > "yea" to extending the ray feature to write pngs of specific size and > resolution. > > it would additionally be nice to be able to specify only the width (or the > height) of a picture. > > I.e. I have a pymol window open with the size adjusted to just see the > picture right, but I want a png with a certain width (say that of a single > journal column) and resolution - but I don't necessarily know the aspect > ratio of the window. Or I have a panel A with height X (for example a > picture of a crystal or something else unpymolrelated) and want to make a > panel B with the structure with the same height, again not necessarily > knowing the width to choose.
Mark, This is an issue I've run into, too. If the aspect ratio of the viewport doesn't match that of the final image the view is changed (atoms clipped, etc). One solution might be to setup the viewport using those same height/width commands we're talking about for ray. (Maybe also adding global settings: "image_height", "image_width".) Usage might be: # setup the viewport; DPI must be specified/assumed. viewport w=22.5cm, h=10cm, dpi=300 # ... setup your image. # ray trace the png imageName.png ,22.5cm, 10cm, dpi=300 Food for thought, -- Jason -- Jason Vertrees, PhD PyMOL Product Manager Schrodinger, LLC (e) jason.vertr...@schrodinger.com (o) +1 (603) 374-7120 ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net