# Open P22 virus asymmetric unit open 2xyy # Create full capsid sym #0 # Zoom to show full capsid windowsize 800 800 focus # Open second state of P22. open 2xyz # Compute morph from first state to second morph start #0 frames 120 morph interpolate #2 morph movie # Undisplay the asymmetric units ~modeldisp #0,2 # Turn on shadows set shadow # Hide ribbon, show atoms as spheres ~ribbon display repr sphere # Color chains rainbow chain # Record movie playing morph of asym unit and copying coordinates to full capsid. movie record supersample 3 coord #3 1,120 ; perframe "mcopy #3 #1 settings x" frames 120 wait 120 movie encode ~/Desktop/p22sphere.mp4 quality higher