Hi Daniel,

If you need a scripted solution but not using grid mode, how about
something like this from a freshly loaded PyMOL:

# get the view matrix for the origin

o = cmd.get_view()

# fetch a protein

fetch 1rx1, async=0

# get the position

x = cmd.get_position()

# restore the camera to the original coordinates

cmd.set_view(o)

# move the loaded protein to the origin

cmd.translate( [-x[0], -x[1], -x[2]], "1rx1")


You could easily make this into a loop over your set of structures.
This is nice because you can still rotate the camera and it will not
change how far away (and thus change the scale) of the view.

Cheers,

-- Jason

On Thu, Oct 20, 2011 at 10:51 AM, Daniel Lundin
<daniel.lun...@scilifelab.se> wrote:
> Hi,
>
> I'm quite new to Pymol, but have searched and found nothing on how to
> visualise and draw a molecule to a certain scale. The reason I want to
> do this is to be able to output figures of several molecules separately
> in a format that displays their relative sizes. I can of course do this
> manually but it's error prone and laborious, so I'd prefer to be able to
> say I want a certain number of angstroms per pixel or so. I will ray
> trace the images.
>
> /Daniel
>
> --
> Daniel Lundin, Postdoc
> SciLifeLab, School of biotechnology,
> KTH Royal institute of technology,
> Stockholm, Sweden
>
> Postal address:
> Box 1031
> 171 21 Solna
> Sweden
>
> Visiting address:
> Tomtebodavägen 23 A
>
> Mobile: +46 (0)708 123 922
> Email: daniel.lun...@scilifelab.se
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Ciosco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-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
>



-- 
Jason Vertrees, PhD
PyMOL Product Manager
Schrodinger, LLC

(e) jason.vertr...@schrodinger.com
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-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

Reply via email to