Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. ###scripts to make a rock_roll_zoom movie with a structure
  2. ###important tips: make the movie in small size(<800x800) so that the final avi or gif will be small enough for submitting or sharing!!!
  3. #To run: pymol -cq movie_roll_zoom.py
  4.  
  5. imageH=800
  6. imageW=800
  7. cmd.load("dg102_start.pse")
  8. cmd.viewport(imageH,imageW)
  9.  
  10. cmd.set('cache_frames', 1)
  11. cmd.bg_color("white")
  12. cmd.mset('1x180')
  13.  
  14. ###scene#1
  15. cmd.frame('1')
  16. ### cut below here and paste into script ###
  17. cmd.set_view (`\
  18. _ 0.073519938, -0.973871529, 0.214801356,\
  19. _ 0.995996237, 0.060772687, -0.065341115,\
  20. _ 0.050582666, 0.218747407, 0.974453211,\
  21. _ -0.000602387, -0.000266761, -323.138061523,\
  22. _ 64.776229858, 46.228454590, 53.818134308,\
  23. _ -1055.858886719, 1674.527343750, -20.000000000 `)
  24. ### cut above here and paste into script ###
  25. cmd.mview("store")
  26.  
  27. ###scene#2
  28. cmd.frame('36')
  29. cmd.set_view (`\
  30. _ -0.617131412, -0.781646729, 0.090264343,\
  31. _ -0.014935303, 0.126324534, 0.991861045,\
  32. _ -0.786698699, 0.610768497, -0.089631617,\
  33. _ 0.002185583, 0.000250578, -323.163726807,\
  34. _ 64.953338623, 45.814121246, 49.699928284,\
  35. _ -1055.858886719, 1674.527343750, -20.000000000 `)
  36. ### cut above here and paste into script ###
  37. cmd.mview("store")
  38.  
  39. ###scene#3
  40. cmd.frame('72')
  41. ### cut below here and paste into script ###
  42. cmd.set_view (`\
  43. _ -0.515456557, -0.798123181, 0.311888844,\
  44. _ 0.134178594, 0.284295082, 0.949285090,\
  45. _ -0.846325219, 0.531170845, -0.039448686,\
  46. _ 0.001764253, 0.000748403, -155.267913818,\
  47. _ 75.326499939, 44.963500977, 34.201545715,\
  48. _ 87.306716919, 195.187728882, -20.000000000 `)
  49. ### cut above here and paste into script ###
  50. cmd.mview("store")
  51.  
  52. ###scene#4
  53. cmd.frame('108')
  54. cmd.set_view (`\
  55. _ -0.298932284, -0.713771045, 0.633357286,\
  56. _ 0.630625665, 0.350350142, 0.692480683,\
  57. _ -0.716175258, 0.606426537, 0.345397413,\
  58. _ 0.000020914, 0.000203574, -133.404968262,\
  59. _ 75.917915344, 59.824207306, 27.267627716,\
  60. _ 66.135101318, 171.869140625, -20.000000000 `)
  61. ### cut above here and paste into script ###
  62. cmd.mview("store")
  63.  
  64. ###scene#5
  65. cmd.frame('144')
  66. ### cut below here and paste into script ###
  67. cmd.set_view (`\
  68. _ -0.643599391, -0.765294552, -0.008595079,\
  69. _ -0.446916044, 0.366680026, 0.815950513,\
  70. _ -0.621299207, 0.528994977, -0.578021824,\
  71. _ 0.003534866, 0.000298232, -93.840583801,\
  72. _ 88.410194397, 62.778854370, 44.627052307,\
  73. _ 26.412055969, 132.146148682, -20.000000000 `)
  74. ### cut above here and paste into script ###
  75. cmd.mview("store")
  76.  
  77. cmd.mview("reinterpolate")
  78. cmd.set("ray_trace_frames","1")
  79. cmd.set("cache_frames","0")
  80. cmd.mpng("DG102_roll_zoom.png")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement