> cmd.madd ('280 x60') > cmd.mdo('280:', 'turn x,5;', 'turn y,5;') > cmd.mplay
Should be: cmd.madd('1 x60') cmd.mdo('280', 'turn x,5;turn y,5;') > -----Original Message----- > From: Magnus Andersson [mailto:m...@farma.ku.dk] > Sent: Tuesday, March 17, 2009 5:42 AM > To: pymol-users@lists.sourceforge.net > Subject: [PyMOL] how rotate a protein in a movie sequence > > Hi, > > and thanks for the help with my earlier question - it solved the problem. > > I want to rotate my protein within a movie to show morphing from different > angles. I try to use mdo for this, but the screen turns black during this > operation - frame 280 - 340. > > Here's my script: > > # first all basic stuff needed > > import __main__ > __main__.pymol_argv = [ 'pymol', '-Gi' ] > > import pymol > > pymol.finish_launching() > > from pymol import cmd > > # load all states (atomic configurations) that we will use > > cmd.load('morph_1.pdb','mov',1) > ... > cmd.load('morph_50.pdb','mov',50) > > # set the representation view > > cmd.set_view ('\ > 0.240646839, -0.036490399, -0.969925761,\ > -0.966329098, -0.102786615, -0.235887647,\ > -0.091088466, 0.994032860, -0.059996925,\ > 0.000000000, 0.000000000, -165.517150879,\ > 39.621959686, 44.060478210, 34.410861969,\ > 130.494979858, 200.539321899, 0.000000000') > > cmd.hide('everything','mov') > cmd.show('cartoon','mov') > > # make a 180 degrees rotation of the first image > # frame 1-120 of state 1 > > cmd.mset ('1 x120') > util.mroll(1,120,1) > > # move between morphs > # show state 1 during 30 frames - then step from state 1 to 50 > # and show state 50 during 30 frames - then step from state 50 > # to 1 = 160 frames > > cmd.madd ('1 x30 1 -50 50 x30 50 -1') > > # HERE IS THE PROBLEM ############################################# > # reorient molecule to show top-view > > cmd.madd ('280 x60') > cmd.mdo('280:', 'turn x,5;', 'turn y,5;') > cmd.mplay > > > Why is the screen turning black for frames 280-340? > > 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 > > > ------------------------------------------------------------------------ -- > ---- > 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 > > >