我已经在Linux操作系统下编译了开源PyMOL v2.2.0a0。
阅读this webpage并看到this video时,我尝试对选择内容执行“ 向对象复制/新建”命令,并在“ edit”中用鼠标分别移动它们模式”,保存每次编辑后的场景状态,但是我无法在它们之间进行插值。
换句话说,我仍然不明白如何实现像该网页所示的视频。
感谢您的关注,
最好的问候
答案 0 :(得分:2)
在this page中找到了解决方案: 对象运动 -保持相机静止,但在场景中移动对象。
有一个可行的例子:
# setup PyMOL for movies
reinitialize set matrix_mode, 1
set movie_panel, 1
set scene_buttons, 1
set cache_frames, 1
config_mouse three_button_motions, 1
# download the complex and setup it up fetch 1te1, async=0
extract AA, c. A
extract BB, c. B
color marine, AA
color grey, BB
as surface, BB
as cartoon, AA
# intialize the movie
mset 1 x410
# orient the scene
set_view (\
0.423117876, 0.061672822, 0.903973043,\
0.789699256, -0.514252067, -0.334546506,\
0.444237947, 0.855418444, -0.266292989,\
0.000107866, -0.000027858, -196.784057617,\
28.171787262, 70.919288635, 52.095287323,\
155.143981934, 238.418914795, -20.000000000 )
# move the inhibitor off the screeen
translate [0,0,100], object=AA
# first movie scene
frame 1
wizard message, "Let's watch the binder float it, while the camera doesn't move."
mview store, object=AA
mview store, object=BB
# 2 second pause for the user to catch up frame 60
mview store, object=AA
mview store, object=BB
# slide the inhibitor in from over the camera. :-)
frame 300
translate [0,0,-100], object=AA
mview store, object=AA
mview interpolate, object=AA
# store & wait 2 seconds...
frame 360
mview store, object=AA
mview store, object=BB
mview reinterpolate, object=AA
mview reinterpolate, object=BB
# 'explode' apart
frame 380
translate [-70, 70, 70], object=AA
translate [70, -70, -70], object=BB
mview store, object=AA
mview store, object=BB
mview reinterpolate, object=AA
mview reinterpolate, object=BB
mplay
您可以将其保存在默认PyMOL路径中的.pml文件(例如 script.pml )中,以便能够在PyMOL中使用命令@script.pml
进行调用。< / p>
这是我的demo