# # 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 rice dwarf icosahedral slicing scene. open emdbID:1060 volume #0 step 1 originIndex 139,139,0 hide shape icos radius 230 orient 2n3 sph 0.2 div 300 scolor #1 volume #0 cmap 0,black:1,red:2,yellow:4,cyan:6,blue colorOutside black 2dlabel create rad text "R = 230" size 10 color black xpos .1 ypos .1 set bg white windowsize 200 150 copy file icosslice.jpg # --------------------------------------------------------------------------- # Record the movie # movie record supersample 3 perframe "sop transform #1 radius $1" range 250,100 perframe '2dlabel change rad text "R = $1"' range 250,100 wait 160 movie encode icosslice.mp4 icosslice.webm icosslice.ogv bitrate 200