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: [email protected]