Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-18 Thread Thomas Holder
Hi Pawel, you should read PyMOL help(cmd.rotate) This would tell you that the rotate function has a origin argument. Hope that helps. Cheers, Thomas On 17 Feb 2014, at 14:40, Paweł Tomaszewski croov...@gmail.com wrote: Thank you Thomas Using camera=0 caused my cone not to do rotations

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-18 Thread Sampson, Jared
Hi Pawel - If you can determine the primary axis of the cone from the tip and the center of the circle at the base, you can give `rotate` an arbitrary [x,y,z] float vector as its first argument instead of x, y or z. For example, if you generate your cone using something like the following

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-18 Thread Paweł Tomaszewski
Jared, Thomas thank you guys! Now everything works great :) The solution was pretty simple and I don't know why it took me so long... I have a X,Y and Z coordinates from my SensAble Pantom haptic device and quaternions to do rotations of cone. The problem was, that in 'translate' function I

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-18 Thread Sampson, Jared
Hi Pawel - Glad you were able to make it work. Also, that haptic device (I guess the new version is the Geomagic Touch?) looks pretty neat. I'm now realizing that when you asked how to make a rotation of the CGO about axis that is NOT of the global pymol coordinate system but goes through the

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-18 Thread Paweł Tomaszewski
Jared, my haptic device is SensAble Phantom Omni and now it is called Geomagic Touch. I work on integration it with PyMOL and VRPN. So far so good, but now I have a little more complicated problem with rotate and translate functions. When I set camera=0 in both of them, it doesn't matter if I

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-17 Thread Paweł Tomaszewski
Thank you Thomas Using camera=0 caused my cone not to do rotations related to the camera position. Cone still rotates not about itself, but about axis of global coordinate system. Do you have any other ideas? Cheers, Paweł 2014-02-06 17:00 GMT+01:00 Thomas Holder

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-06 Thread Thomas Holder
Hi Pawel, have you tried using the camera=0 argument? cmd.rotate(axis, angle, object='yourcone', camera=0) Cheers, Thomas On 05 Feb 2014, at 15:46, Павел Томашевский croov...@gmail.com wrote: Hello I've made a cone CGO (something like a pointer) and now I need to make a rotation of the

[PyMOL] Yaw, Pitch and Roll of CGO

2014-02-05 Thread Павел Томашевский
Hello I've made a cone CGO (something like a pointer) and now I need to make a rotation of the cone. I have got yaw, pitch and roll angle values, but when I do 'rotate' command it rotates about axis of the global coordinate system. My question is, how to make a rotation of the CGO about axis that