actually should probably be v[12:15] = float(x), float(y), float(z) since args given at the pymol command line are strings...

>>> "Joel Bard" <JBard@wyeth.com> 9/21/2006 11:47:51 AM >>>
It's a bit ugly but you can do get_view and then change the values of elements 12-14 to be the coordinates you want to center on and paste the result into a set_view command.  This could be done easily enough in a little python script:
 
def centCoords( x,y,z):
   v = list( cmd.get_view() ) #convert to list 'cause can't assign to sequence from get_view
   vl[12:15] = x,y,z              #remember that slices don't include 2nd index!
   cmd.set_view( v )
 
cmd.extend( "centCoords", centCoords )  #add centCoords to the set of pymol commands
 
Maybe there's an easier way but I think this works.
Joel
 

>>>  Björn Kauppi  <bjorn.kauppi@karobio.se> 9/18/2006 4:46:10 AM >>>
Hi all,

How do I center at a specific coordinate? Can not find any obvious way, by searching the web and manuals.

--Björn

***************************************************************************
This e-mail may contain confidential information proprietary to Karo Bio AB
and is meant for the intended addressee(s) only. Any unauthorized review,
use, disclosure or distribution is prohibited. If you have received this
message in error, please advise the sender and delete the e-mail and any
attachments from your files. Thank you!
***************************************************************************

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users