Magnus,

Yes, use a Python loop to program the movie:

for frame in range(280,321): cmd.mdo(frame, 'turn x,1.5') 

Incidentally, this is how you could load your files in as well:

for state in range(1,51): cmd.load('morph_%d.pdb'%state,'mov',state)

Cheers,
Warren


> -----Original Message-----
> From: Magnus Andersson [mailto:m...@farma.ku.dk]
> Sent: Tuesday, March 17, 2009 11:34 AM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] how rotate a protein in a movie sequence (continued)
> 
> Hi again,
> 
> Ok, adding
> 
> cmd.madd ('1 x60')
> cmd.mdo('280', 'turn x,90')
> cmd.mplay
> 
> makes the protein turn in the way I'd like, but it makes this
immediately.
> What I would like is to have this as a smooth transition over 60
frames.
> 
> Is there a way to do this?
> 
> Best regards /
> 
> Magnus
> 
> --
> Magnus Andersson, PhD
> 
> Biostructural Research
> 
> Dept. Medicinal Chemistry
> 
> Faculty of Pharmaceutical Sciences
> 
> University of Copenhagen
> 
> Phone: +45 353 36499
> 
> Fax: +45 353 36040
> 
> Mobile: +46 707 346545
> 
> E-mail: m...@farma.ku.dk
> 
> 
> --
> Magnus Andersson, PhD
> 
> Biostructural Research
> 
> Dept. Medicinal Chemistry
> 
> Faculty of Pharmaceutical Sciences
> 
> University of Copenhagen
> 
> Phone: +45 353 36499
> 
> Fax: +45 353 36040
> 
> Mobile: +46 707 346545
> 
> E-mail: m...@farma.ku.dk
> 
> 
>
------------------------------------------------------------------------
--
> ----
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)
are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly
and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based
development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users
> 
> 
> 



Reply via email to