[Fwd: Re: [PyMOL] orient the molecule]

2005-05-20 Thread Bingding Huang
-- Bingding Huang PhD student Bioinformatics group Biotec & Department of Computing Tazberg 47, 01307 TU Dresden, Germany Tel:0049 351 46340064 (Office) Tel:0049 351 4403368 (Home) Fax:0049 351 46340061 Mobile: 01772981375 E-mail: bhu...@biotec.tu-dresden.de --- Begin Message ---

RE: [PyMOL] orient the molecule

2005-04-21 Thread Warren DeLano
This is tricky because the view matrix isn't quite the same format as the coordinates translation matrix. Here's some code that will do what you want: # transform selection coordinates by the camera view cv=list(cmd.get_view()) cmd.transform_selection("all", \ cv[0:3]+[0.0]+ \ cv[3:6]+[0.0]

Re: [PyMOL] orient the molecule

2005-04-21 Thread Bingding Huang
Thanks! But translate[x,y,z] only translate the molecule. What I want is to put longest length of molecule in the X axes, the second Y axes, the third z axes. Just like what orient command does which change the view of camera but not the coordinates. Now I want the coordinates also change afte

Re: [PyMOL] orient the molecule

2005-04-21 Thread Andrea Spitaleri
Hi, I think that you should use translate[x,y,z] to change the coordinates of your molecule bye andrea 2005/4/21, Bingding Huang : > Hi, > When I try "orient" command to orient the molecule, the camera changes > but the coodinates don't change. > I wonder whether it is possible that when I orie