Jason Vertrees wrote:
> 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.
>

Calculate center of mass or average of all coordinates
calculate vector from that to point of interest
rotate view so that vector points toward front/camera
translate so point of interest is centerd

maybe reverse the last two steps?




> Cheers,
>
> -- Jason
>
>
> On Sun, Oct 7, 2012 at 10:04 AM, Troels Emtekær Linnet
> <[email protected]>  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 ([email protected])
>> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
>> Archives: http://www.mail-archive.com/[email protected]
>
>
>


------------------------------------------------------------------------------
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 ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]

Reply via email to