Assuming taqeven is the name of the object you want to translate, use

cmd.translate("[3.3,0,0]", "taqeven")


Andreas



zach powers wrote:
> Hi,
> 
> I have been having some trouble with teh cmd.translate syntax/
> 
> 
> I have tried variations on the following:
> 
>      cmd.translate("[3.3,0,0]", "%s"%taqeven)
> 
> including
>      cmd.translate('[3.3,0,0]', "%s"%taqeven)
> 
> and
> 
> cmd.translate("3.3,0,0", "%s"%taqeven)
> 
> 
> I still always get the following error message:
> Error: bad vector.
> Traceback (most recent call last):
>    File "/usr/lib/python2.6/site-packages/pymol/parsing.py", line 455, 
> in run_file
>      execfile(file,global_ns,local_ns)
>    File "../Desktop/02_test.py", line 66, in <module>
>      cmd.translate("3.3,0,0", "%s"%taqeven)
>    File "/usr/lib/python2.6/site-packages/pymol/editing.py", line 1464, 
> in translate
>      raise pymol.CmdException
> 
> 
> I am sure this is a simple syntax issue but I am unsure of how to write 
> the vector into the cmd.tranlate format.
> 
> any help would be appreciated.
> 
> thanks
> zach cp
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
> 

-- 
         Andreas Förster, Research Associate
         Paul Freemont & Xiaodong Zhang Labs
Department of Biochemistry, Imperial College London
             http://www.msf.bio.ic.ac.uk

------------------------------------------------------------------------------
_______________________________________________
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