Ah! taqeven is a list and I am cycling through the list to translate
each member. I incorrectly thought the problem was in the vector
format, not the variable.
The final working version is:
cmd.translate("[3.3,0,0]", "%s"%taqeven[y]) where y is the position in
the list i am cycling through.
thank you Andreas.
thank you Warren.
best
zach cp
On 06/29/2009 01:26 PM, Andreas Förster wrote:
> 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 ([email protected])
>> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
>> Archives: http://www.mail-archive.com/[email protected]
>>
>
------------------------------------------------------------------------------
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]