# # Normally setup for a movie would be done interactively, saved to a session, # and then loaded before running the animation commands. To make this example # self-contained we instead use commands to setup the scene here. # # Setup the water hydrogen bonding scene. open 1a0m display del ~:18.water addh spec #0 sym #0 group shift,5,3,0,0*shift,5,0,3,0*shift,3,0,0,3 combine #0,1 close true newchainids false addcharge std spec #2 minimize spec #2 nsteps 0 cgsteps 0 prep false focus ; scale 1.2 ; turn 1,1,0 15 set bg_color white set silhouette windowsize 200 150 copy file hbond.jpg # --------------------------------------------------------------------------- # Record the movie # movie record supersample 3 rock cycle 200 perframe "hbond spec #2" frames 200 perframe "minimize spec #2 nsteps 2 cgsteps 2" frames 100 wait 100 perframe "minimize spec #2 nsteps 3 cgsteps 3" frames 50 wait 50 perframe "minimize spec #2 nsteps 5 cgsteps 5" frames 50 wait 150 movie encode hbond.mp4 hbond.webm hbond.ogv bitrate 300