Re: [Avogadro-Discuss] Rotate molecule with Avogadro using python script

2011-05-19 Thread Fabien Archambault
2011/5/19 Archambault Fabien > On 05/19/2011 02:43 PM, David Lonie wrote: > > On Thu, May 19, 2011 at 8:35 AM, Archambault Fabien > > wrote: > >> I tried to look at the code but I do not "speak" C++ so I believe I will > >> have a hard time to understand... The main problem, for me, is that the

Re: [Avogadro-Discuss] Rotate molecule with Avogadro using python script

2011-05-19 Thread Geoffrey Hutchison
On May 19, 2011, at 8:54 AM, Archambault Fabien wrote: > None.None(Atom, numpy.ndarray) > did not match C++ signature: > None(Avogadro::Atom {lvalue}, Eigen::Matrix) The problem seems to be that the conversion between numpy and the vector library Eigen isn't working. I'm not sure if the

Re: [Avogadro-Discuss] Rotate molecule with Avogadro using python script

2011-05-19 Thread Archambault Fabien
On 05/19/2011 02:43 PM, David Lonie wrote: > On Thu, May 19, 2011 at 8:35 AM, Archambault Fabien > wrote: >> I tried to look at the code but I do not "speak" C++ so I believe I will >> have a hard time to understand... The main problem, for me, is that the >> class setPos does not exists in the p

Re: [Avogadro-Discuss] Rotate molecule with Avogadro using python script

2011-05-19 Thread David Lonie
On Thu, May 19, 2011 at 8:35 AM, Archambault Fabien wrote: > I tried to look at the code but I do not "speak" C++ so I believe I will > have a hard time to understand... The main problem, for me, is that the > class setPos does not exists in the python binding. Does 'atom.pos = [new coordinate]'

Re: [Avogadro-Discuss] Rotate molecule with Avogadro using python script

2011-05-19 Thread Archambault Fabien
On 05/19/2011 02:00 PM, David Lonie wrote: > Hi Fabien, > > On Thu, May 19, 2011 at 5:09 AM, Archambault Fabien > wrote: >> I believe hte function I have to use is Avogadro.Navigate.rotate >> Its help is: >> rotate( (GLWidget)arg1, (object)arg2, (float)arg3, (float)arg4, >> (float)arg5) -> Non

Re: [Avogadro-Discuss] Rotate molecule with Avogadro using python script

2011-05-19 Thread David Lonie
Hi Fabien, On Thu, May 19, 2011 at 5:09 AM, Archambault Fabien wrote: > I believe hte function I have to use is Avogadro.Navigate.rotate > Its help is: >  rotate( (GLWidget)arg1, (object)arg2, (float)arg3, (float)arg4, > (float)arg5) -> None : >  Rotate about center by deltaX, deltaY, and deltaZ

[Avogadro-Discuss] Rotate molecule with Avogadro using python script

2011-05-19 Thread Archambault Fabien
Hello list, I have a question and I could not find an answer easily even if I tried many things. I would like to do a rotation of a loaded molecule within a python script (I believe within the interface it is not yet possible). I have searched within the API and found that: http://avogadro.ope