Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###scripts to make a rock_roll_zoom movie with a structure
- ###important tips: make the movie in small size(<800x800) so that the final avi or gif will be small enough for submitting or sharing!!!
- #To run: pymol -cq movie_roll_zoom.py
- imageH=800
- imageW=800
- cmd.load("dg102_start.pse")
- cmd.viewport(imageH,imageW)
- cmd.set('cache_frames', 1)
- cmd.bg_color("white")
- cmd.mset('1x180')
- ###scene#1
- cmd.frame('1')
- ### cut below here and paste into script ###
- cmd.set_view (`\
- _ 0.073519938, -0.973871529, 0.214801356,\
- _ 0.995996237, 0.060772687, -0.065341115,\
- _ 0.050582666, 0.218747407, 0.974453211,\
- _ -0.000602387, -0.000266761, -323.138061523,\
- _ 64.776229858, 46.228454590, 53.818134308,\
- _ -1055.858886719, 1674.527343750, -20.000000000 `)
- ### cut above here and paste into script ###
- cmd.mview("store")
- ###scene#2
- cmd.frame('36')
- cmd.set_view (`\
- _ -0.617131412, -0.781646729, 0.090264343,\
- _ -0.014935303, 0.126324534, 0.991861045,\
- _ -0.786698699, 0.610768497, -0.089631617,\
- _ 0.002185583, 0.000250578, -323.163726807,\
- _ 64.953338623, 45.814121246, 49.699928284,\
- _ -1055.858886719, 1674.527343750, -20.000000000 `)
- ### cut above here and paste into script ###
- cmd.mview("store")
- ###scene#3
- cmd.frame('72')
- ### cut below here and paste into script ###
- cmd.set_view (`\
- _ -0.515456557, -0.798123181, 0.311888844,\
- _ 0.134178594, 0.284295082, 0.949285090,\
- _ -0.846325219, 0.531170845, -0.039448686,\
- _ 0.001764253, 0.000748403, -155.267913818,\
- _ 75.326499939, 44.963500977, 34.201545715,\
- _ 87.306716919, 195.187728882, -20.000000000 `)
- ### cut above here and paste into script ###
- cmd.mview("store")
- ###scene#4
- cmd.frame('108')
- cmd.set_view (`\
- _ -0.298932284, -0.713771045, 0.633357286,\
- _ 0.630625665, 0.350350142, 0.692480683,\
- _ -0.716175258, 0.606426537, 0.345397413,\
- _ 0.000020914, 0.000203574, -133.404968262,\
- _ 75.917915344, 59.824207306, 27.267627716,\
- _ 66.135101318, 171.869140625, -20.000000000 `)
- ### cut above here and paste into script ###
- cmd.mview("store")
- ###scene#5
- cmd.frame('144')
- ### cut below here and paste into script ###
- cmd.set_view (`\
- _ -0.643599391, -0.765294552, -0.008595079,\
- _ -0.446916044, 0.366680026, 0.815950513,\
- _ -0.621299207, 0.528994977, -0.578021824,\
- _ 0.003534866, 0.000298232, -93.840583801,\
- _ 88.410194397, 62.778854370, 44.627052307,\
- _ 26.412055969, 132.146148682, -20.000000000 `)
- ### cut above here and paste into script ###
- cmd.mview("store")
- cmd.mview("reinterpolate")
- cmd.set("ray_trace_frames","1")
- cmd.set("cache_frames","0")
- cmd.mpng("DG102_roll_zoom.png")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement