Hi Troels,

I've run into this problem a few times, too, but never took the time
to solve it correctly.

A quick plan might look like:
  * cmd.orient on the selection
  * store the view vector (http://www.pymolwiki.org/index.php/Get_View)
  * let C1 = count the number of atoms behind the view vector, using
something like (http://www.pymolwiki.org/index.php/SelInside)
  * invert the view vector
  * let C2 = count the number of atoms behind the view vector, using
something like (http://www.pymolwiki.org/index.php/SelInside)
  * compare C1 to C2, choosing the
  * if C2 < C1 then flip the view

You could use other tricks. I'm sure the community has other ideas.

Cheers,

-- Jason


On Sun, Oct 7, 2012 at 10:04 AM, Troels Emtekær Linnet
<tlin...@gmail.com> wrote:
> Hi pymolers.
>
> I am generating a list of residue ID's from some calculations.
> Now I want to make a little script that select the residue and sticks it
> and then zoom and make .png file.
>
> How do I make sure that the zoom, is viewed from "outside" the protein for
> each residue/.png file?
>
> Best
>
> Troels Emtekær Linnet
> Ved kløvermarken 9, 1.th
> 2300 København S
> Mobil: +45 60210234
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-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
Schrödinger, Inc.

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

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-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